Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManager::__construct PHP Method

__construct() public method

public __construct ( Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface $mediaRepository, Sulu\Bundle\MediaBundle\Media\FormatCache\FormatCacheInterface $formatCache, Sulu\Bundle\MediaBundle\Media\ImageConverter\ImageConverterInterface $converter, string $saveImage, array $responseHeaders, array $formats, array $supportedMimeTypes )
$mediaRepository Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface
$formatCache Sulu\Bundle\MediaBundle\Media\FormatCache\FormatCacheInterface
$converter Sulu\Bundle\MediaBundle\Media\ImageConverter\ImageConverterInterface
$saveImage string
$responseHeaders array
$formats array
$supportedMimeTypes array
    public function __construct(MediaRepositoryInterface $mediaRepository, FormatCacheInterface $formatCache, ImageConverterInterface $converter, $saveImage, $responseHeaders, $formats, array $supportedMimeTypes)
    {
        $this->mediaRepository = $mediaRepository;
        $this->formatCache = $formatCache;
        $this->converter = $converter;
        $this->saveImage = $saveImage == 'true' ? true : false;
        $this->responseHeaders = $responseHeaders;
        $this->fileSystem = new Filesystem();
        $this->formats = $formats;
        $this->supportedMimeTypes = $supportedMimeTypes;
    }