(NFC) Tweak comment
authorTim Otten <totten@civicrm.org>
Wed, 17 Feb 2021 06:33:48 +0000 (22:33 -0800)
committerGitHub <noreply@github.com>
Wed, 17 Feb 2021 06:33:48 +0000 (22:33 -0800)
Civi/Core/Container.php

index 5bc005b42744c548d49ac18cef676ffade34dbdc..7a02a56b451724015e7fa7f66d04874b41e13198 100644 (file)
@@ -569,7 +569,8 @@ class Container {
         $container->set($name, $obj);
       }
       \Civi::$statics[__CLASS__]['container'] = $container;
-      // Ensure api factory has loaded (in case other roots have been bypassed)
+      // Ensure all container-based serivces have a chance to add their listeners.
+      // Without this, it's a matter of happenstance (dependent upon particular page-request/configuration/etc).
       $container->get('dispatcher');
 
     }