[command] Added --verbose option to the load-fixtures command

This commit is contained in:
William DURAND 2011-08-30 18:30:27 +02:00
parent c04664beb2
commit cd6ae1afaa

View file

@ -82,6 +82,10 @@ EOT
$this->filesystem = new Filesystem();
$this->absoluteFixturesPath = realpath($this->getApplication()->getKernel()->getRootDir() . '/../' . $input->getOption('dir'));
if ($input->getOption('verbose')) {
$this->additionalPhingArgs[] = 'verbose';
}
if (!$this->absoluteFixturesPath && !file_exists($this->absoluteFixturesPath)) {
return $output->writeln('<info>[Propel] The fixtures directory does not exist.</info>');
}