Skip to content

Commit 2fd2e0b

Browse files
committed
[HttpKernel] deprecated bundle inheritance
1 parent d272009 commit 2fd2e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/ControllerNameParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function parse($controller)
5858

5959
try {
6060
// this throws an exception if there is no such bundle
61-
$allBundles = $this->kernel->getBundle($bundle, false);
61+
$allBundles = $this->kernel->getBundle($bundle, false, true);
6262
} catch (\InvalidArgumentException $e) {
6363
$message = sprintf(
6464
'The "%s" (from the _controller value "%s") does not exist or is not enabled in your kernel!',
@@ -141,7 +141,7 @@ private function findAlternative($nonExistentBundleName)
141141
}
142142

143143
$lev = levenshtein($nonExistentBundleName, $bundleName);
144-
if ($lev <= strlen($nonExistentBundleName) / 3 && ($alternative === null || $lev < $shortest)) {
144+
if ($lev <= strlen($nonExistentBundleName) / 3 && (null === $alternative || $lev < $shortest)) {
145145
$alternative = $bundleName;
146146
$shortest = $lev;
147147
}

0 commit comments

Comments
 (0)