]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Factory.php
Disable controller resolver auto mapping
[airbundle] / Factory.php
index 7ab9c2ae2e501b4a8a19a77057f9e56be12509c3..a4211655c4f19a2dc150ba938fc575aa3018cabb 100644 (file)
@@ -74,7 +74,7 @@ final class Factory implements RepositoryFactory {
 
                //Set to current locale
                //XXX: current request is not yet populated in constructor
-               $this->locale = $this->request->getCurrentRequest()->getLocale() ?? $this->locale;
+               $this->locale = $this->request->getCurrentRequest()?->getLocale() ?? $this->locale;
 
                //Return repository class instance
                //XXX: router, slugger, translator, languages and locale arguments will be ignored by default