[REF] Make instantiation of dispatcher consistent.
authoreileen <emcnaughton@wikimedia.org>
Thu, 23 Apr 2020 06:25:08 +0000 (18:25 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 23 Apr 2020 06:27:28 +0000 (18:27 +1200)
commit4162ab6fb26605658298ef017031ee8bef8871a2
tree02dac0d252b15f9e147b37ff8f494b3b1ac1418a
parent5fa8d81b835dbd4d2bdc2f539fdd889fc7da0aad
[REF] Make instantiation of dispatcher consistent.

We have 3 ways of iniatiging a dispatcher

Civi\Core\Container::singleton()->get('dispatcher')
Civi::service('dispatcher')
Civi::dispatcher()

Tim confirms there is no functional difference, so this consolidates on the shortest one :-)
CRM/Core/BAO/ActionSchedule.php
CRM/Core/Config.php
CRM/Core/DAO.php
CRM/Cxn/ApiRouter.php
CRM/Utils/System.php
Civi/Core/Event/GenericHookEvent.php
Civi/Core/Event/PostEvent.php
Civi/Core/Event/PreEvent.php
tests/phpunit/CRM/Mailing/TokensTest.php
tests/phpunit/CRM/Utils/SystemTest.php
tests/phpunit/Civi/Core/Event/GenericHookEventTest.php