8000 bug #10363 [FrameworkBundle][Console] Fix issue #10345 container:debu… · symfony/symfony@69fa1da · GitHub
[go: up one dir, main page]

Skip to content

Commit 69fa1da

Browse files
committed
bug #10363 [FrameworkBundle][Console] Fix issue #10345 container:debug --parameter="" not working anymore (FineWolf)
This PR was merged into the 2.4 branch. Discussion ---------- [FrameworkBundle][Console] Fix issue #10345 container:debug --parameter="" not working anymore | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes* | Fixed tickets | #10345 | License | MIT | Doc PR | N/A ## TODO - [x] Fix issue #10345 - [ ] Create unit test for `describeContainerParameter` Commits ------- b278aa4 Fix issue #10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore'
2 parents 5808287 + b278aa4 commit 69fa1da

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function describe(OutputInterface $output, $object, array $options = arra
5555
$this->describeContainerService($this->resolveServiceDefinition($object, $options['id']), $options);
5656
break;
5757
case $object instanceof ContainerBuilder && isset($options['parameter']):
58-
$this->formatParameter($object->getParameter($options['parameter']));
58+
$this->describeContainerParameter($object->getParameter($options['parameter']), $options);
5959
break;
6060
case $object instanceof ContainerBuilder:
6161
$this->describeContainerServices($object, $options);
@@ -114,6 +114,17 @@ abstract protected function describeRouteCollection(RouteCollection $routes, arr
114114
*/
115115
abstract protected function describeRoute(Route $route, array $options = array());
116116

117+
/**
118+
* Describes a specific container parameter.
119+
*
120+
* @param mixed $parameterValue
121+
* @param array $options
122+
*/
123+
protected function describeContainerParameter($parameterValue, array $options = array())
124+
{
125+
$this->write($this->formatParameter($parameterValue));
126+
}
127+
117128
/**
118129
* Describes container parameters.
119130
*

0 commit comments

Comments
 (0)
0