Esempio n. 1
0
 /**
  * Create Task from config
  * @return mixed
  * @throws \Exception
  */
 protected function createTask()
 {
     // Split name and prepend Task namespace to it
     $name = $this->conf->get(array('task', 'type'), 'default');
     $namespace = array_merge(array('Task'), explode('/', $name));
     // Summon a Task with the current Migrator config
     return Migrator::summon($namespace, $this->conf->export());
 }