diff --git a/src/Command/GenerateCommand.php b/src/Command/GenerateCommand.php index 8bee443..7afd30e 100644 --- a/src/Command/GenerateCommand.php +++ b/src/Command/GenerateCommand.php @@ -16,8 +16,18 @@ */ class GenerateCommand extends MigrationsGenerateDoctrineCommand { - protected $ezMigrationTemplate = - 'setName('ezpublish:migrations:generate'); + $this->setDescription('Generate a blank eZ Publish/Platform enabled migration class'); + } + + protected function getTemplate() + { + return <<<'TEMPLATE' +; use Kreait\EzPublish\MigrationsBundle\Migrations\EzPublishMigration; @@ -50,18 +60,7 @@ public function down(Schema $schema) } } -'; - protected function configure() - { - parent::configure(); - - $this->setName('ezpublish:migrations:generate'); - $this->setDescription('Generate a blank eZ Publish/Platform enabled migration class'); - } - - protected function getTemplate() - { - return $this->ezMigrationTemplate; +TEMPLATE; } }