Skip to content

Commit

Permalink
Merge branch '2.7' into 2.8
Browse files Browse the repository at this point in the history
* 2.7:
  [FrameworkBundle] Remove duplicated code in ContainerDebugCommand
  • Loading branch information
fabpot committed Apr 28, 2016
2 parents f146f84 + 4aca703 commit fddf073
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -100,25 +100,21 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$this->validateInput($input);
$object = $this->getContainerBuilder();

if ($input->getOption('parameters')) {
$object = $this->getContainerBuilder()->getParameterBag();
$object = $object->getParameterBag();
$options = array();
} elseif ($parameter = $input->getOption('parameter')) {
$object = $this->getContainerBuilder();
$options = array('parameter' => $parameter);
} elseif ($input->getOption('tags')) {
$object = $this->getContainerBuilder();
$options = array('group_by' => 'tags', 'show_private' => $input->getOption('show-private'));
} elseif ($tag = $input->getOption('tag')) {
$object = $this->getContainerBuilder();
$options = array('tag' => $tag, 'show_private' => $input->getOption('show-private'));
} elseif ($name = $input->getArgument('name')) {
$object = $this->getContainerBuilder();
$name = $this->findProperServiceName($input, $io, $object, $name);
$options = array('id' => $name);
} else {
$object = $this->getContainerBuilder();
$options = array('show_private' => $input->getOption('show-private'));
}

Expand Down

0 comments on commit fddf073

Please sign in to comment.