[FrameworkBundle] moved router:debug and container:debug to use the compact layout
This commit is contained in:
parent
bd16157e98
commit
fe5961a6cd
@ -23,6 +23,7 @@ class TextDescriptor extends Descriptor
|
|||||||
$showControllers = isset($options['show_controllers']) && $options['show_controllers'];
|
$showControllers = isset($options['show_controllers']) && $options['show_controllers'];
|
||||||
$headers = array('Name', 'Method', 'Scheme', 'Host', 'Path');
|
$headers = array('Name', 'Method', 'Scheme', 'Host', 'Path');
|
||||||
$table = new TableHelper();
|
$table = new TableHelper();
|
||||||
|
$table->setLayout(TableHelper::LAYOUT_COMPACT);
|
||||||
$table->setHeaders($showControllers ? array_merge($headers, array('Controller')) : $headers);
|
$table->setHeaders($showControllers ? array_merge($headers, array('Controller')) : $headers);
|
||||||
|
|
||||||
foreach ($routes->all() as $name => $route) {
|
foreach ($routes->all() as $name => $route) {
|
||||||
@ -90,6 +91,7 @@ class TextDescriptor extends Descriptor
|
|||||||
protected function describeContainerParameters(ParameterBag $parameters, array $options = array())
|
protected function describeContainerParameters(ParameterBag $parameters, array $options = array())
|
||||||
{
|
{
|
||||||
$table = new TableHelper();
|
$table = new TableHelper();
|
||||||
|
$table->setLayout(TableHelper::LAYOUT_COMPACT);
|
||||||
$table->setHeaders(array('Parameter', 'Value'));
|
$table->setHeaders(array('Parameter', 'Value'));
|
||||||
|
|
||||||
foreach ($this->sortParameters($parameters) as $parameter => $value) {
|
foreach ($this->sortParameters($parameters) as $parameter => $value) {
|
||||||
@ -190,6 +192,7 @@ class TextDescriptor extends Descriptor
|
|||||||
$tagsNames = array_keys($maxTags);
|
$tagsNames = array_keys($maxTags);
|
||||||
|
|
||||||
$table = new TableHelper();
|
$table = new TableHelper();
|
||||||
|
$table->setLayout(TableHelper::LAYOUT_COMPACT);
|
||||||
$table->setHeaders(array_merge(array('Service ID'), $tagsNames, array('Scope', 'Class name')));
|
$table->setHeaders(array_merge(array('Service ID'), $tagsNames, array('Scope', 'Class name')));
|
||||||
|
|
||||||
foreach ($this->sortServiceIds($serviceIds) as $serviceId) {
|
foreach ($this->sortServiceIds($serviceIds) as $serviceId) {
|
||||||
|
Reference in New Issue
Block a user