Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param Migrator $migrator
  * @param string   $path
  * @param string   $current
  * @param array    $parameters
  */
 public function __construct(Migrator $migrator, $path, $current = null, $parameters = [])
 {
     $this->migrator = $migrator;
     $this->current = $current;
     $this->parameters = array_replace(['migration' => $this], $parameters);
     $this->files = $this->loadFiles($path, $migrator->getPattern());
 }