/** * @inheritdoc */ public function init() { parent::init(); $this->_fileKey = $this->attribute; if ($this->thumbAttribute !== null) { $this->_thumbKey = $this->thumbAttribute; } }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->fileKey === null) { throw new InvalidConfigException("Property 'fileKey' must be specified."); } $this->_fileKey = $this->fileKey; if ($this->thumbKey !== null) { $this->_thumbKey = $this->thumbKey; } }