Merge pull request #17124 from totten/master-hook-cleanup
[civicrm-core.git] / Civi / Core / Event / SystemInstallEvent.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 namespace Civi\Core\Event;
13
14 /**
15 * Class SystemInstallEvent
16 * @package Civi\API\Event
17 */
18 class SystemInstallEvent extends \Symfony\Component\EventDispatcher\Event {
19
20 /**
21 * The SystemInstallEvent fires once after installation - during the first page-view.
22 */
23 const EVENT_NAME = 'civi.core.install';
24
25 /**
26 * @param \Civi\Core\Event\GenericHookEvent $e
27 * @see \CRM_Utils_Hook::eventDefs
28 */
29 public static function hookEventDefs($e) {
30 $e->inspector->addEventClass(self::EVENT_NAME, __CLASS__);
31 }
32
33 }