projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c46c94b
)
Ensure dispatcher has loaded listeners
author
eileen
<emcnaughton@wikimedia.org>
Wed, 17 Feb 2021 06:26:46 +0000
(19:26 +1300)
committer
eileen
<emcnaughton@wikimedia.org>
Wed, 17 Feb 2021 06:26:46 +0000
(19:26 +1300)
Civi/Core/Container.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Core/Container.php
b/Civi/Core/Container.php
index 7d5e6b8baf17b20891bbee406377e620f0dc0951..5bc005b42744c548d49ac18cef676ffade34dbdc 100644
(file)
--- a/
Civi/Core/Container.php
+++ b/
Civi/Core/Container.php
@@
-569,6
+569,9
@@
class Container {
$container->set($name, $obj);
}
\Civi::$statics[__CLASS__]['container'] = $container;
+ // Ensure api factory has loaded (in case other roots have been bypassed)
+ $container->get('dispatcher');
+
}
else {
$bootServices['dispatcher.boot']->setDispatchPolicy($mainDispatchPolicy);