/**
  * Handle the event.
  *
  * @param  StreamWasCreated  $event
  * @return void
  */
 public function handle(StreamWasCreated $event)
 {
     $stream = $event->getStream();
     foreach ($this->modules as $module) {
         if (in_array($stream->getNamespace(), _getNamespaces($module))) {
             $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) {
         if (in_array($stream->getNamespace(), _getNamespaces($module))) {
             $this->dispatch(new ModifyEntity($module, $stream, $assignment));
         }
     }
 }
 /**
  * Dispaches two jobs, 'ModifyModule' and 'SeedModule' *question of configuration
  *
  * @param  ModuleWasInstalled  $event
  * @return void
  */
 public function handle(ModuleWasInstalled $event)
 {
     $module = $event->getModule();
     if (count(_getNamespaces($module)) > 0) {
         $this->dispatch(new ModifyModule($module));
         if (_config('builder.seed', $module)) {
             $this->dispatch(new SeedModule($module));
         }
     }
 }
 /**
  * Dispaches two jobs, 'ModifyModule' and 'SeedModule' *question of configuration
  *
  * @param  ModuleWasInstalled  $event
  * @return void
  */
 public function handle(ModuleWasInstalled $event)
 {
     $module = $event->getModule();
     if (count(_getNamespaces($module)) > 0) {
         $this->dispatch(new ModifyModule($module));
         if (_seedingOption($module) === 'yes') {
             $this->dispatch(new SeedModule($module));
         }
     }
 }