Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd5b71d
)
Protect from getLocale call on empty request happening in console commands
author
Raphaël Gertz
<git@rapsys.eu>
Thu, 7 Mar 2024 17:09:52 +0000
(18:09 +0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Thu, 7 Mar 2024 17:09:52 +0000
(18:09 +0100)
Factory.php
patch
|
blob
|
history
diff --git
a/Factory.php
b/Factory.php
index 7ab9c2ae2e501b4a8a19a77057f9e56be12509c3..a4211655c4f19a2dc150ba938fc575aa3018cabb 100644
(file)
--- a/
Factory.php
+++ b/
Factory.php
@@
-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