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