Gregwar\ImageBundle\Services\ImageHandling::__construct PHP Method

__construct() public method

public __construct ( string $cacheDirectory, integer $cacheDirMode, string $handlerClass, Symfony\Component\DependencyInjection\ContainerInterface $container, Symfony\Component\HttpKernel\KernelInterface | Symfony\Component\Config\FileLocatorInterface $fileLocator, boolean $throwException, string $fallbackImage )
$cacheDirectory string
$cacheDirMode integer
$handlerClass string
$container Symfony\Component\DependencyInjection\ContainerInterface
$fileLocator Symfony\Component\HttpKernel\KernelInterface | Symfony\Component\Config\FileLocatorInterface
$throwException boolean
$fallbackImage string
    public function __construct($cacheDirectory, $cacheDirMode, $handlerClass, ContainerInterface $container, $fileLocator, $throwException, $fallbackImage)
    {
        if (!$fileLocator instanceof FileLocatorInterface && $fileLocator instanceof KernelInterface) {
            throw new \InvalidArgumentException('Argument 5 passed to ' . __METHOD__ . ' must be an instance of ' . 'Symfony\\Component\\Config\\FileLocatorInterface or Symfony\\Component\\HttpKernel\\KernelInterface.');
        }
        if ($fileLocator instanceof KernelInterface) {
            @trigger_error('Pass Symfony\\Component\\HttpKernel\\KernelInterface to ' . __CLASS__ . ' is deprecated since version 2.1.0 and will be removed in 3.0.' . ' Use Symfony\\Component\\Config\\FileLocatorInterface instead.', E_USER_DEPRECATED);
        }
        $this->cacheDirectory = $cacheDirectory;
        $this->cacheDirMode = intval($cacheDirMode);
        $this->handlerClass = $handlerClass;
        $this->container = $container;
        $this->fileLocator = $fileLocator;
        $this->throwException = $throwException;
        $this->fallbackImage = $fallbackImage;
    }