CRM-19824 - Container::loadContainer - Always compile listeners
authorTim Otten <totten@civicrm.org>
Tue, 3 Jan 2017 07:54:43 +0000 (23:54 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 3 Jan 2017 08:55:29 +0000 (00:55 -0800)
commit12e01332fa1de167d87831a60d0f3d28d9f39ae1
tree3ca857cfab8f389e534c76d47a03797839999b64
parentd96ee4e097eb9bd36e4eb5e0aa0cd157c6d818de
CRM-19824 - Container::loadContainer - Always compile listeners

In the typical (cache-enabled) flow, the container is compiled to identify
any services tagged with `kernel.event_subscriber`. However, if you disable
caching, then it skipped compilation, and it failed to identify all the
listeners.

With this patch, we always detect the listeners -- even if caching is
disabled.

(This issue identified while working on tests for CRM-19690.
Civi/Core/Container.php