Sulu\Bundle\MediaBundle\Media\Manager\MediaManager::__construct PHP Method

__construct() public method

public __construct ( Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface $mediaRepository, Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface $collectionRepository, Sulu\Component\Security\Authentication\UserRepositoryInterface $userRepository, Sulu\Bundle\CategoryBundle\Entity\CategoryRepositoryInterface $categoryRepository, EntityManager $em, Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface $storage, Sulu\Bundle\MediaBundle\Media\FileValidator\FileValidatorInterface $validator, Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface $formatManager, Sulu\Bundle\TagBundle\Tag\TagManagerInterface $tagManager, Sulu\Bundle\MediaBundle\Media\TypeManager\TypeManagerInterface $typeManager, Sulu\Component\PHPCR\PathCleanupInterface $pathCleaner, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null, Sulu\Component\Security\Authorization\SecurityCheckerInterface $securityChecker = null, FFMpeg\FFProbe $ffprobe, array $permissions, string $downloadPath, string $maxFileSize )
$mediaRepository Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface
$collectionRepository Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface
$userRepository Sulu\Component\Security\Authentication\UserRepositoryInterface
$categoryRepository Sulu\Bundle\CategoryBundle\Entity\CategoryRepositoryInterface
$em Doctrine\ORM\EntityManager
$storage Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface
$validator Sulu\Bundle\MediaBundle\Media\FileValidator\FileValidatorInterface
$formatManager Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface
$tagManager Sulu\Bundle\TagBundle\Tag\TagManagerInterface
$typeManager Sulu\Bundle\MediaBundle\Media\TypeManager\TypeManagerInterface
$pathCleaner Sulu\Component\PHPCR\PathCleanupInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$securityChecker Sulu\Component\Security\Authorization\SecurityCheckerInterface
$ffprobe FFMpeg\FFProbe
$permissions array
$downloadPath string
$maxFileSize string
    public function __construct(MediaRepositoryInterface $mediaRepository, CollectionRepositoryInterface $collectionRepository, UserRepositoryInterface $userRepository, CategoryRepositoryInterface $categoryRepository, EntityManager $em, StorageInterface $storage, FileValidatorInterface $validator, FormatManagerInterface $formatManager, TagManagerInterface $tagManager, TypeManagerInterface $typeManager, PathCleanupInterface $pathCleaner, TokenStorageInterface $tokenStorage = null, SecurityCheckerInterface $securityChecker = null, FFProbe $ffprobe, $permissions, $downloadPath, $maxFileSize)
    {
        $this->mediaRepository = $mediaRepository;
        $this->collectionRepository = $collectionRepository;
        $this->userRepository = $userRepository;
        $this->categoryRepository = $categoryRepository;
        $this->em = $em;
        $this->storage = $storage;
        $this->validator = $validator;
        $this->formatManager = $formatManager;
        $this->tagManager = $tagManager;
        $this->typeManager = $typeManager;
        $this->pathCleaner = $pathCleaner;
        $this->tokenStorage = $tokenStorage;
        $this->securityChecker = $securityChecker;
        $this->ffprobe = $ffprobe;
        $this->permissions = $permissions;
        $this->downloadPath = $downloadPath;
        $this->maxFileSize = $maxFileSize;
    }