Example #1
0
 /**
  * {@inheritdoc}
  */
 public function remove(File $aFile)
 {
     $this->execute('DELETE FROM file WHERE id = :id', ['id' => $aFile->id()->id()]);
     if ($this->eventBus instanceof FileEventBus) {
         $this->handle($aFile->events());
     }
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function remove(File $aFile)
 {
     unset($this->files[$aFile->id()->id()]);
     if ($this->eventBus instanceof FileEventBus) {
         $this->handle($aFile->events());
     }
 }