N°4756 - Ease extensibility for CRUD operations : Event Service - renamed service setup interface

This commit is contained in:
Eric Espie
2022-12-13 10:19:25 +01:00
parent baaa4474f9
commit 22749caeb4
5 changed files with 26 additions and 13 deletions

View File

@@ -6,9 +6,9 @@
*/
use Combodo\iTop\Service\EventService;
use Combodo\iTop\Service\iEventEnrolment;
use Combodo\iTop\Service\iEventServiceSetup;
class ApplicationEvents implements iEventEnrolment
class ApplicationEvents implements iEventServiceSetup
{
// Startup events
const APPLICATION_EVENT_REQUEST_RECEIVED = 'APPLICATION_EVENT_REQUEST_RECEIVED';
@@ -17,7 +17,7 @@ class ApplicationEvents implements iEventEnrolment
/**
* @inheritDoc
*/
public function InitEvents()
public function RegisterEventsAndListeners()
{
EventService::RegisterEvent(self::APPLICATION_EVENT_REQUEST_RECEIVED, [
'description' => 'A request was received from the network, at this point only the session is started, the configuration is not even loaded',