public function createFiles() { $this->getEvent()->attach('album.model.upload.create.post', array($this, 'connectFileToAlbum')); $this->getEvent()->attach('album.model.upload.create.post', array($this, 'setAlbumCover')); return parent::createFiles(); }