Fix issue symfony/symfony#10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore'
This commit is contained in:
parent
5808287d52
commit
b278aa4b02
@ -55,7 +55,7 @@ abstract class Descriptor implements DescriptorInterface
|
|||||||
$this->describeContainerService($this->resolveServiceDefinition($object, $options['id']), $options);
|
$this->describeContainerService($this->resolveServiceDefinition($object, $options['id']), $options);
|
||||||
break;
|
break;
|
||||||
case $object instanceof ContainerBuilder && isset($options['parameter']):
|
case $object instanceof ContainerBuilder && isset($options['parameter']):
|
||||||
$this->formatParameter($object->getParameter($options['parameter']));
|
$this->describeContainerParameter($object->getParameter($options['parameter']), $options);
|
||||||
break;
|
break;
|
||||||
case $object instanceof ContainerBuilder:
|
case $object instanceof ContainerBuilder:
|
||||||
$this->describeContainerServices($object, $options);
|
$this->describeContainerServices($object, $options);
|
||||||
@ -114,6 +114,17 @@ abstract class Descriptor implements DescriptorInterface
|
|||||||
*/
|
*/
|
||||||
abstract protected function describeRoute(Route $route, array $options = array());
|
abstract protected function describeRoute(Route $route, array $options = array());
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Describes a specific container parameter.
|
||||||
|
*
|
||||||
|
* @param mixed $parameterValue
|
||||||
|
* @param array $options
|
||||||
|
*/
|
||||||
|
protected function describeContainerParameter($parameterValue, array $options = array())
|
||||||
|
{
|
||||||
|
$this->write($this->formatParameter($parameterValue));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Describes container parameters.
|
* Describes container parameters.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user