Changed getConnection return to get the name of the connection

This commit is contained in:
William DURAND 2011-04-19 14:32:38 +02:00
commit 7fbd755f05
5 changed files with 11 additions and 32 deletions

View file

@ -255,13 +255,13 @@ EOT;
/**
* Get connection by checking the input option named 'connection'.
* Returns the default connection if no option specified or an exception
* Returns the default connection if no option specified or an exception
* if the specified connection doesn't exist.
*
* @param InputInterface $input
* @param OutputInterface $output
* @throw \InvalidArgumentException If the connection does not exist.
* @return array A Propel Configuration as an array.
* @return array
*/
protected function getConnection(InputInterface $input, OutputInterface $output) {
$container = $this->getApplication()->getKernel()->getContainer();
@ -277,7 +277,7 @@ EOT;
$output->writeln(sprintf('<info>Use connection named <comment>%s</comment></info>', $name));
return $defaultConfig;
return array($name, $defaultConfig);
}
/**