Browse Source

Rename DoctrineMigrate to DoctrineMigrateTask

I hope this is the reason it doesn't works.
1.0
samuel4x4 10 years ago
parent
commit
5eb771bf30
  1. 4
      Mage/Task/BuiltIn/Symfony2/DoctrineMigrateTask.php

4
Mage/Task/BuiltIn/Symfony2/DoctrineMigrate.php → Mage/Task/BuiltIn/Symfony2/DoctrineMigrateTask.php

@ -15,7 +15,7 @@ use Mage\Task\BuiltIn\Symfony2\SymfonyAbstractTask;
/** /**
* Task for Doctrine migrations * Task for Doctrine migrations
*/ */
class DoctrineMigrate extends SymfonyAbstractTask class DoctrineMigrateTask extends SymfonyAbstractTask
{ {
/** /**
* (non-PHPdoc) * (non-PHPdoc)
@ -34,7 +34,9 @@ class DoctrineMigrate extends SymfonyAbstractTask
public function run() public function run()
{ {
$env = $this->getParameter('env', 'dev'); $env = $this->getParameter('env', 'dev');
$command = $this->getAppPath() . ' doctrine:migrations:migrate -n --env=' . $env; $command = $this->getAppPath() . ' doctrine:migrations:migrate -n --env=' . $env;
return $this->runCommand($command); return $this->runCommand($command);
} }
} }
Loading…
Cancel
Save