/**
  * Handle the event.
  *
  * @param  ModuleWasInstalled  $event
  * @return void
  */
 public function handle(ModuleWasInstalled $event)
 {
     $module = $event->getModule();
     $namespaces = ebxGetNamespaces($module);
     if (count($namespaces) > 0) {
         $this->dispatch(new ModifyModule($module));
     }
 }
 /**
  * Handle the event.
  *
  * @param  StreamWasCreated  $event
  * @return void
  */
 public function handle(StreamWasCreated $event)
 {
     $stream = $event->getStream();
     foreach ($this->modules as $module) {
         $namespaces = ebxGetNamespaces($module);
         if (in_array($stream->getNamespace(), $namespaces)) {
             $this->dispatch(new GenerateEntity($module, $stream));
         }
     }
 }
 /**
  * Handle the event.
  *
  * @param  AssignmentWasCreated  $event
  * @return void
  */
 public function handle(AssignmentWasCreated $event)
 {
     $assignment = $event->getAssignment();
     $stream = $assignment->getStream();
     foreach ($this->modules as $module) {
         $namespaces = ebxGetNamespaces($module);
         if (in_array($stream->getNamespace(), $namespaces)) {
             $this->dispatch(new ModifyEntity($module, $stream, $assignment));
         }
     }
 }