[command] Displayed the environment value

This commit is contained in:
William DURAND 2011-09-06 10:51:36 +02:00
commit cbd9ac634e

View file

@ -359,7 +359,8 @@ EOT;
throw new \InvalidArgumentException(sprintf('Connection named %s doesn\'t exist', $name));
}
$output->writeln(sprintf('<info>Use connection named</info> <comment>%s</comment>.', $name));
$output->writeln(sprintf('Use connection named <comment>%s</comment> in <comment>%s</comment> environment.',
$name, $this->getApplication()->getKernel()->getEnvironment()));
return array($name, $defaultConfig);
}