public function AssetImageHelper::__construct in Media: Acquia DAM 8
AssetImageHelper constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Drupal config service.
\Drupal\Core\File\FileSystemInterface $fileSystem: Drupal filesystem wrapper.
\GuzzleHttp\ClientInterface $httpClient: Guzzle HTTP Client.
\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mimeTypeGuesser: Drupal MIME type guesser.
\Drupal\Core\Image\ImageFactory $imageFactory: Drupal ImageFactory service.
File
- src/
Service/ AssetImageHelper.php, line 73
Class
- AssetImageHelper
- Class AssetImageHelper.
Namespace
Drupal\media_acquiadam\ServiceCode
public function __construct(ConfigFactoryInterface $configFactory, FileSystemInterface $fileSystem, ClientInterface $httpClient, MimeTypeGuesserInterface $mimeTypeGuesser, ImageFactory $imageFactory) {
$this->httpClient = $httpClient;
$this->configFactory = $configFactory;
$this->fileSystem = $fileSystem;
$this->mimeTypeGuesser = $mimeTypeGuesser;
$this->imageFactory = $imageFactory;
}