File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function parse($controller)
58
58
59
59
try {
60
60
// 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 );
62
62
} catch (\InvalidArgumentException $ e ) {
63
63
$ message = sprintf (
64
64
'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)
141
141
}
142
142
143
143
$ lev = levenshtein ($ nonExistentBundleName , $ bundleName );
144
- if ($ lev <= strlen ($ nonExistentBundleName ) / 3 && ($ alternative === null || $ lev < $ shortest )) {
144
+ if ($ lev <= strlen ($ nonExistentBundleName ) / 3 && (null === $ alternative || $ lev < $ shortest )) {
145
145
$ alternative = $ bundleName ;
146
146
$ shortest = $ lev ;
147
147
}
You can’t perform that action at this time.
0 commit comments