X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi.php;h=ae5dc6f4b1dda2f1a883542edbb0ec98c17b14dc;hb=2661ce117272a79a8e90c2ab2ab16e6357d7bc78;hp=fe16326de75dec4adc5e30a6069cdb2cd449e869;hpb=600b1e8d40c0c890a4496af3caa4842900df6056;p=civicrm-core.git diff --git a/Civi.php b/Civi.php index fe16326de7..ae5dc6f4b1 100644 --- a/Civi.php +++ b/Civi.php @@ -54,6 +54,15 @@ class Civi { return Civi\Core\Container::singleton(); } + /** + * Get the event dispatcher. + * + * @return \Symfony\Component\EventDispatcher\EventDispatcherInterface + */ + public static function dispatcher() { + return Civi\Core\Container::singleton()->get('dispatcher'); + } + /** * @return \Civi\Core\Lock\LockManager */