public function ScreenLoaderManager::__construct in Janrain Registration 8
ScreenLoaderManager constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Logger factory.
\GuzzleHttp\Client $client: HTTP client.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
File
- src/
ScreenLoaderManager.php, line 75
Class
- ScreenLoaderManager
- Allow to load and manage Janrain screens (local and remote).
Namespace
Drupal\janrain_captureCode
public function __construct(ConfigFactoryInterface $configFactory, LoggerChannelFactoryInterface $logger_factory, Client $client, FileSystemInterface $file_system) {
$this->path = rtrim($configFactory
->get('janrain_capture.settings')
->get('screens.folder'), '/');
$this->logger = $logger_factory
->get('janrain_capture');
$this->httpClient = $client;
$this->fileSystem = $file_system;
}