public function TextimageFactory::__construct in Textimage 8.4
Same name and namespace in other branches
- 8.3 src/TextimageFactory.php \Drupal\textimage\TextimageFactory::__construct()
Constructs a new TextimageFactory object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Utility\Token $token_service: The token resolution service.
\Psr\Log\LoggerInterface $logger: The Textimage logger.
\Drupal\Core\Cache\CacheBackendInterface $cache_service: The Textimage cache service.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\StreamWrapper\StreamWrapperManager $stream_wrapper_manager: The stream wrapper manager service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The image style entity storage.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
File
- src/
TextimageFactory.php, line 101
Class
- TextimageFactory
- Provides a factory for Textimage.
Namespace
Drupal\textimageCode
public function __construct(ConfigFactoryInterface $config_factory, Token $token_service, LoggerInterface $logger, CacheBackendInterface $cache_service, AccountInterface $current_user, StreamWrapperManager $stream_wrapper_manager, EntityTypeManagerInterface $entity_type_manager, FileSystemInterface $file_system) {
$this->configFactory = $config_factory;
$this->token = $token_service;
$this->logger = $logger;
$this->cache = $cache_service;
$this->currentUser = $current_user;
$this->streamWrapperManager = $stream_wrapper_manager;
$this->userStorage = $entity_type_manager
->getStorage('user');
$this->fileSystem = $file_system;
}