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)
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 }
You can’t perform that action at this time.
0 commit comments