Skip to content

Commit

Permalink
save some ticks when there is no name prefix configured
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Jun 9, 2020
1 parent 2108fd1 commit 2a294fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Routing/Loader/YamlFileLoader.php
Expand Up @@ -171,7 +171,7 @@ protected function parseImport(RouteCollection $collection, array $config, strin
$schemes = isset($config['schemes']) ? $config['schemes'] : null;
$methods = isset($config['methods']) ? $config['methods'] : null;
$trailingSlashOnRoot = $config['trailing_slash_on_root'] ?? true;
$namePrefix = $config['name_prefix'] ?? '';
$namePrefix = $config['name_prefix'] ?? null;
$exclude = $config['exclude'] ?? null;

if (isset($config['controller'])) {
Expand Down

0 comments on commit 2a294fe

Please sign in to comment.