Merge pull request #17715 from civicrm/5.27
[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 * @deprecated - You may simply use the event name directly. dev/core#1744
24 */
25 const EVENT_NAME = 'civi.core.install';
26
27 /**
28 * @param \Civi\Core\Event\GenericHookEvent $e
29 * @see \CRM_Utils_Hook::eventDefs
30 */
31 public static function hookEventDefs($e) {
32 $e->inspector->addEventClass('civi.core.install', __CLASS__);
33 }
34
35 }