Ejemplo n.º 1
0
 /**
  * Handle the command.
  *
  * @param StreamRepositoryInterface $streams
  */
 public function handle(StreamRepositoryInterface $streams)
 {
     if (!$this->type->isForceDeleting()) {
         return;
     }
     $streams->delete($streams->findBySlugAndNamespace($this->type->getSlug() . '_posts', 'posts'));
 }