Removed command headers, fixed naming
This commit is contained in:
parent
a99af5fffc
commit
590787d2b6
12 changed files with 21 additions and 34 deletions
|
|
@ -55,6 +55,11 @@ abstract class AbstractCommand extends ContainerAwareCommand
|
|||
*/
|
||||
protected $bundle = null;
|
||||
|
||||
/**
|
||||
* @var Boolean
|
||||
*/
|
||||
private $alreadyWroteConnection = false;
|
||||
|
||||
/**
|
||||
* Return the package prefix for a given bundle.
|
||||
*
|
||||
|
|
@ -436,8 +441,12 @@ EOT;
|
|||
throw new \InvalidArgumentException(sprintf('Connection named %s doesn\'t exist', $name));
|
||||
}
|
||||
|
||||
$output->writeln(sprintf('Use connection named <comment>%s</comment> in <comment>%s</comment> environment.',
|
||||
$name, $this->getApplication()->getKernel()->getEnvironment()));
|
||||
if (false === $this->alreadyWroteConnection) {
|
||||
$output->writeln(sprintf('Use connection named <comment>%s</comment> in <comment>%s</comment> environment.',
|
||||
$name, $this->getApplication()->getKernel()->getEnvironment())
|
||||
);
|
||||
$this->alreadyWroteConnection = true;
|
||||
}
|
||||
|
||||
return array($name, $defaultConfig);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue