You are here

public function TextimageFactory::__construct in Textimage 8.3

Same name and namespace in other branches
  1. 8.4 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.

File

src/TextimageFactory.php, line 90

Class

TextimageFactory
Provides a factory for Textimage.

Namespace

Drupal\textimage

Code

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) {
  $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');
}