8000 oops, the command with name, too · symfony/symfony@472dfdc · GitHub
[go: up one dir, main page]

Skip to content

Commit 472dfdc

Browse files
committed
oops, the command with name, too
1 parent b1a9587 commit 472dfdc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ protected function outputRoute(OutputInterface $output, $name)
128128

129129
$output->writeln($this->getHelper('formatter')->formatSection('router', sprintf('Route "%s"', $name)));
130130

131-
$route = $route->compile();
132131
$output->writeln(sprintf('<comment>Name</comment> %s', $name));
133132
$output->writeln(sprintf('<comment>Pattern</comment> %s', $route->getPattern()));
134133
$output->writeln(sprintf('<comment>Class</comment> %s', get_class($route)));
@@ -157,7 +156,7 @@ protected function outputRoute(OutputInterface $output, $name)
157156
}
158157
$output->writeln(sprintf('<comment>Options</comment> %s', $options));
159158
$output->write('<comment>Regex</comment> ');
160-
$output->writeln(preg_replace('/^ /', '', preg_replace('/^/m', ' ', $route->getRegex())), OutputInterface::OUTPUT_RAW);
159+
$output->writeln(preg_replace('/^ /', '', preg_replace('/^/m', ' ', $route->compile()->getRegex())), OutputInterface::OUTPUT_RAW);
161160
}
162161

163162
protected function formatValue($value)

0 commit comments

Comments
 (0)
0