Imbo\EventListener\ImageVariations::__construct PHP Метод

__construct() публичный Метод

Class constructor
public __construct ( array $params = [] )
$params array Parameters for the event listener
    public function __construct(array $params = [])
    {
        $this->params = array_replace($this->params, $params);
        // Make sure the scale factor is a negative number if it exists
        if (isset($this->params['scaleFactor']) && $this->params['scaleFactor'] >= 1) {
            throw new InvalidArgumentException('Scale factor must be below 1', 503);
        }
        $this->configureDatabase($this->params);
        $this->configureStorage($this->params);
    }