/**
  * @param  File
  * @return int number of queries
  */
 public function execute(File $sql)
 {
     $count = $this->loadFile($sql->getPath());
     if ($count === 0) {
         throw new LogicException("{$sql->file} neobsahuje zadne sql.");
     }
     return $count;
 }
 public function execute(File $sql)
 {
     $version = (int) basename($sql->name, '.php');
     $class = "App\\Migrations\\Migration{$version}";
     extract($this->getParameters());
     include $sql->getPath();
     /** @var Migration $migration */
     $migration = new $class();
     $this->container->callInjects($migration);
     $migration->run();
 }
 /**
  * @param  File
  * @return int number of queries
  */
 public function execute(File $sql)
 {
     extract($this->getParameters());
     return include $sql->getPath();
 }