Exemple #1
0
 /**
  * Handle the command.
  *
  * @param CacheManager       $cache
  * @param FieldMigrator      $fields
  * @param StreamMigrator     $streams
  * @param AssignmentMigrator $assignments
  */
 public function handle(CacheManager $cache, FieldMigrator $fields, StreamMigrator $streams, AssignmentMigrator $assignments)
 {
     $assignments->reset($this->migration);
     $fields->reset($this->migration);
     $streams->reset($this->migration);
     $cache->flush();
 }
 /**
  * Handle the command.
  *
  * @param FieldMigrator      $fields
  * @param StreamMigrator     $streams
  * @param AssignmentMigrator $assignments
  */
 public function handle(FieldMigrator $fields, StreamMigrator $streams, AssignmentMigrator $assignments)
 {
     $fields->migrate($this->migration);
     $streams->migrate($this->migration);
     $assignments->migrate($this->migration);
 }