public function __construct(array $config = []) { parent::__construct($config); $this->_loadImageProcessingFromConfig(); }
/** * Implemented Events * * @return array */ public function implementedEvents() { return array_merge(parent::implementedEvents(), ['FileStorage.afterSave' => 'afterSave', 'FileStorage.afterDelete' => 'afterDelete', 'ImageStorage.afterSave' => 'afterSave', 'ImageStorage.afterDelete' => 'afterDelete', 'ImageVersion.removeVersion' => 'removeImageVersion', 'ImageVersion.createVersion' => 'createImageVersion', 'ImageVersion.getVersions' => 'imagePath', 'FileStorage.ImageHelper.imagePath' => 'imagePath', 'FileStorage.getPath' => 'getPath']); }