From 6f4a7e7ae886bf189ad39e6eea0904dfe87e8f8e Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 7 Sep 2011 10:46:56 +0200 Subject: [PATCH] [Command] Changed fixture commands names --- ...taDumpCommand.php => FixturesDumpCommand.php} | 16 ++++++++-------- ...xturesCommand.php => FixturesLoadCommand.php} | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) rename Command/{DataDumpCommand.php => FixturesDumpCommand.php} (85%) rename Command/{LoadFixturesCommand.php => FixturesLoadCommand.php} (97%) diff --git a/Command/DataDumpCommand.php b/Command/FixturesDumpCommand.php similarity index 85% rename from Command/DataDumpCommand.php rename to Command/FixturesDumpCommand.php index e985a2e..795a4ca 100644 --- a/Command/DataDumpCommand.php +++ b/Command/FixturesDumpCommand.php @@ -15,14 +15,14 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Propel\PropelBundle\DataFixtures\Dumper\YamlDataDumper; +use Propel\PropelBundle\DataFixtures\Dumper\YamlDumpFixtureser; /** - * DataDumpCommand. + * FixturesDumpCommand. * * @author William DURAND */ -class DataDumpCommand extends AbstractPropelCommand +class FixturesDumpCommand extends AbstractPropelCommand { /** * Default fixtures directory. @@ -36,18 +36,18 @@ class DataDumpCommand extends AbstractPropelCommand protected function configure() { $this - ->setDescription('Dump data from database into YAML file') + ->setDescription('Dump data from database into YAML fixtures file.') ->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'Set this parameter to define a connection to use') ->setHelp(<<propel:data-dump dumps data from database into YAML file. +The propel:fixtures:dump dumps data from database into YAML fixtures file. - php app/console propel:data-dump + php app/console propel:fixtures:dump The --connection parameter allows you to change the connection to use. The default connection is the active connection (propel.dbal.default_connection). EOT ) - ->setName('propel:data-dump') + ->setName('propel:fixtures:dump') ; } @@ -58,7 +58,7 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { - $this->writeSection($output, '[Propel] You are running the command: propel:data-dump'); + $this->writeSection($output, '[Propel] You are running the command: propel:fixtures:dump'); list($name, $defaultConfig) = $this->getConnection($input, $output); diff --git a/Command/LoadFixturesCommand.php b/Command/FixturesLoadCommand.php similarity index 97% rename from Command/LoadFixturesCommand.php rename to Command/FixturesLoadCommand.php index 9993e35..3f5e4b8 100644 --- a/Command/LoadFixturesCommand.php +++ b/Command/FixturesLoadCommand.php @@ -22,11 +22,11 @@ use Propel\PropelBundle\DataFixtures\Loader\YamlDataLoader; use Propel\PropelBundle\DataFixtures\Loader\XmlDataLoader; /** - * LoadFixturesCommand + * FixturesLoadCommand * * @author William DURAND */ -class LoadFixturesCommand extends AbstractPropelCommand +class FixturesLoadCommand extends AbstractPropelCommand { /** * Default fixtures directory. @@ -61,9 +61,9 @@ class LoadFixturesCommand extends AbstractPropelCommand ->addOption('yml', '', InputOption::VALUE_NONE, 'Load YAML fixtures') ->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'Set this parameter to define a connection to use') ->setHelp(<<propel:load-fixtures loads XML, SQL and/or YAML fixtures. +The propel:fixtures:load loads XML, SQL and/or YAML fixtures. - php app/console propel:load-fixtures + php app/console propel:fixtures:load The --connection parameter allows you to change the connection to use. The default connection is the active connection (propel.dbal.default_connection). @@ -103,7 +103,7 @@ YAML fixtures are: EOT ) - ->setName('propel:load-fixtures') + ->setName('propel:fixtures:load') ; } @@ -114,7 +114,7 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { - $this->writeSection($output, '[Propel] You are running the command: propel:load-fixtures'); + $this->writeSection($output, '[Propel] You are running the command: propel:fixtures:load'); $this->filesystem = new Filesystem(); $this->absoluteFixturesPath = realpath($this->getApplication()->getKernel()->getRootDir() . '/../' . $input->getOption('dir'));