X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi.php;h=ae5dc6f4b1dda2f1a883542edbb0ec98c17b14dc;hb=494fdf05835188164a8ed1996f48de07ac4c223a;hp=fe16326de75dec4adc5e30a6069cdb2cd449e869;hpb=eaa75f9e8d84dce66ba2f1855a4ab267d14fc56e;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 */