From 30751339f503a885a86f56742e8a73cd36d56c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gamez?= Date: Fri, 26 Feb 2016 16:39:25 +0100 Subject: [PATCH] Remove unneeded class variable --- src/Command/GenerateCommand.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) 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; } }