protected function _afterStoreFile(Event $event) {
		$entity = $event->getData('entity');

		return $this->dispatchEvent('FileStorage.afterStoreFile', [
			'entity' => $event->getData('entity'),
			'adapter' => $this->getStorageAdapter($entity->get('adapter'))
		]);
	}
protected function _afterStoreFile(Event $event) {
		$entity = $event->getData('entity');

		return $this->dispatchEvent('FileStorage.afterStoreFile', [
			'entity' => $event->getData('entity'),
			'adapter' => $this->getStorageAdapter($entity->get('adapter'))
		]);
	}
protected function _afterStoreFile ( Event $ event ) { $ entity = $ event -> getData ( 'entity' ) ; return $ this -> dispatchEvent ( 'FileStorage.afterStoreFile' , [ 'entity' => $ event -> getData ( 'entity' ) , 'adapter' => $ this -> getStorageAdapter ( $ entity -> get ( 'adapter' ) ) ] ) ; }
Callback to handle the case something needs to be done after the file was
successfully stored in the storage backend.

By default this will trigger an event FileStorage.afterStoreFile but you
can also just overload this method and implement your own logic here.

This method is a good place to flag a file for some post processing or
directly doing the post processing like image versions or
video compression.

@param \Cake\Event\Event $event
@return \Cake\Event\Event
Callback to handle the case something needs to be done after the file was successfully stored in the storage backend .