Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 472dfdc

Browse filesBrowse files
committed
oops, the command with name, too
1 parent b1a9587 commit 472dfdc
Copy full SHA for 472dfdc

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php
+1-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.