Files
iTop/application/applicationevents.class.inc.php

38 lines
1.0 KiB
PHP

<?php
/*
* @copyright Copyright (C) 2010-2022 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
use Combodo\iTop\Service\Description\EventDescription;
use Combodo\iTop\Service\EventService;
use Combodo\iTop\Service\iEventServiceSetup;
class ApplicationEvents implements iEventServiceSetup
{
// Startup events
const APPLICATION_EVENT_REQUEST_RECEIVED = 'APPLICATION_EVENT_REQUEST_RECEIVED';
const APPLICATION_EVENT_METAMODEL_STARTED = 'APPLICATION_EVENT_METAMODEL_STARTED';
/**
* @inheritDoc
*/
public function RegisterEventsAndListeners()
{
EventService::RegisterEvent(new EventDescription(
self::APPLICATION_EVENT_REQUEST_RECEIVED,
null,
'A request was received from the network, at this point only the session is started, the configuration is not even loaded',
'',
[],
'application'));
EventService::RegisterEvent(new EventDescription(
self::APPLICATION_EVENT_METAMODEL_STARTED,
null,
'The MetaModel is fully started',
'',
[],
'application'));
}
}