8000 Using raw_output instead, which seems to be consistent with "I don't … · symfony/symfony@6031198 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6031198

Browse files
committed
Using raw_output instead, which seems to be consistent with "I don't want styling tags"
1 parent 49be4ed commit 6031198

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
224224

225225
$tableHeaders = array_merge(array('Service ID'), $tagsNames, array('Class name'));
226226
$tableRows = array();
227-
$rawOutput = isset($options['raw_output']) && $options['raw_output'];
227+
$rawOutput = isset($options['raw_text']) && $options['raw_text'];
228228
foreach ($this->sortServiceIds($serviceIds) as $serviceId) {
229229
$definition = $this->resolveServiceDefinition($builder, $serviceId);
230230
$styledServiceId = $rawOutput ? $serviceId : sprintf('<fg=cyan>%s</fg=cyan>', $serviceId);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ abstract protected function getFormat();
183183
private function assertDescription($expectedDescription, $describedObject, array $options = array())
184184
{
185185
$options['raw_output'] = true;
186+
$options['raw_text'] = true;
186187
$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
187188

188189
if ('txt' === $this->getFormat()) {

0 commit comments

Comments
 (0)
0