mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 05:58:46 +02:00
N°4756 - Move event register to dedicated folder
This commit is contained in:
38
sources/Application/EventRegister/ApplicationEvents.php
Normal file
38
sources/Application/EventRegister/ApplicationEvents.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2023 Combodo SARL
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Application\EventRegister;
|
||||
|
||||
use Combodo\iTop\Service\Events\Description\EventDescription;
|
||||
use Combodo\iTop\Service\Events\EventService;
|
||||
use Combodo\iTop\Service\Events\iEventServiceSetup;
|
||||
|
||||
/**
|
||||
* Class ApplicationEvents
|
||||
*
|
||||
* @author Eric Espie <eric.espie@combodo.com>
|
||||
* @package Combodo\iTop\Application\EventRegister
|
||||
* @since 3.1.0
|
||||
*/
|
||||
class ApplicationEvents implements iEventServiceSetup
|
||||
{
|
||||
// Startup events
|
||||
const APPLICATION_EVENT_METAMODEL_STARTED = 'APPLICATION_EVENT_METAMODEL_STARTED';
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function RegisterEventsAndListeners()
|
||||
{
|
||||
EventService::RegisterEvent(new EventDescription(
|
||||
self::APPLICATION_EVENT_METAMODEL_STARTED,
|
||||
null,
|
||||
'The MetaModel is fully started',
|
||||
'',
|
||||
[],
|
||||
'application'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user