You are here

public function PhotosUpload::__construct in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/PhotosUpload.php \Drupal\photos\PhotosUpload::__construct()

Creates a new AliasCleaner.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\File\FileSystem $file_system: The file system service.

\Drupal\file\FileUsage\FileUsageInterface $file_usage: File usage service.

\Drupal\Core\Image\ImageFactory $image_factory: The image factory.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.

\Drupal\Core\Utility\Token $token: The token replacement instance.

\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.

File

src/PhotosUpload.php, line 156

Class

PhotosUpload
Functions to help with uploading images to albums.

Namespace

Drupal\photos

Code

public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, AccountInterface $current_user, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_manager, FileSystem $file_system, FileUsageInterface $file_usage, ImageFactory $image_factory, MessengerInterface $messenger, ModuleHandlerInterface $module_handler, StreamWrapperManagerInterface $stream_wrapper_manager, Token $token, TransliterationInterface $transliteration) {
  $this->configFactory = $config_factory;
  $this->connection = $connection;
  $this->currentUser = $current_user;
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_manager;
  $this->imageFactory = $image_factory;
  $this->fileSystem = $file_system;
  $this->fileUsage = $file_usage;
  $this->messenger = $messenger;
  $this->moduleHandler = $module_handler;
  $this->streamWrapperManager = $stream_wrapper_manager;
  $this->token = $token;
  $this->transliteration = $transliteration;
}