diff --git a/sources/Application/ApplicationEvents.php b/sources/Application/ApplicationEvents.php index ad9e096bb..b2872a24b 100644 --- a/sources/Application/ApplicationEvents.php +++ b/sources/Application/ApplicationEvents.php @@ -6,9 +6,9 @@ namespace Combodo\iTop\Application; -use Combodo\iTop\Service\Description\EventDescription; -use Combodo\iTop\Service\EventService; -use Combodo\iTop\Service\iEventServiceSetup; +use Combodo\iTop\Service\Events\Description\EventDescription; +use Combodo\iTop\Service\Events\EventService; +use Combodo\iTop\Service\Events\iEventServiceSetup; class ApplicationEvents implements iEventServiceSetup { diff --git a/sources/Application/Service/Description/EventDataDescription.php b/sources/Application/Service/Events/Description/EventDataDescription.php similarity index 96% rename from sources/Application/Service/Description/EventDataDescription.php rename to sources/Application/Service/Events/Description/EventDataDescription.php index 1112b13b3..b81291796 100644 --- a/sources/Application/Service/Description/EventDataDescription.php +++ b/sources/Application/Service/Events/Description/EventDataDescription.php @@ -4,7 +4,7 @@ * @license http://opensource.org/licenses/AGPL-3.0 */ -namespace Combodo\iTop\Service\Description; +namespace Combodo\iTop\Service\Events\Description; /** * Description of the data given with an event when registering diff --git a/sources/Application/Service/Description/EventDescription.php b/sources/Application/Service/Events/Description/EventDescription.php similarity index 88% rename from sources/Application/Service/Description/EventDescription.php rename to sources/Application/Service/Events/Description/EventDescription.php index 09333393e..f23cd4423 100644 --- a/sources/Application/Service/Description/EventDescription.php +++ b/sources/Application/Service/Events/Description/EventDescription.php @@ -4,7 +4,7 @@ * @license http://opensource.org/licenses/AGPL-3.0 */ -namespace Combodo\iTop\Service\Description; +namespace Combodo\iTop\Service\Events\Description; /** * Description of an event when registering @@ -20,7 +20,7 @@ class EventDescription private $mEventSources; private string $sDescription; private string $sReplaces; - /** @var \Combodo\iTop\Service\Description\EventDataDescription[] */ + /** @var \Combodo\iTop\Service\Events\Description\EventDataDescription[] */ private array $aEventDataDescription; private string $sModule; @@ -32,7 +32,7 @@ class EventDescription * @param string|string[]|null $mEventSources Source(s) for this event (can be the root class for CRUD events) * @param string $sDescription Description of the event * @param string $sReplaces In case this event obsoletes previous extensibility functions - * @param \Combodo\iTop\Service\Description\EventDataDescription[] $aEventDataDescription Description of the data associated with this event + * @param \Combodo\iTop\Service\Events\Description\EventDataDescription[] $aEventDataDescription Description of the data associated with this event * @param string $sModule iTop Module name where the event is defined */ public function __construct(string $sEventName, $mEventSources, string $sDescription, string $sReplaces, array $aEventDataDescription, string $sModule) @@ -102,7 +102,7 @@ class EventDescription } /** - * @param \Combodo\iTop\Service\Description\EventDataDescription[]s $aEventDataDescription + * @param \Combodo\iTop\Service\Events\Description\EventDataDescription[]s $aEventDataDescription */ public function SetEventDataDescription(array $aEventDataDescription): void { diff --git a/sources/Application/Service/EventData.php b/sources/Application/Service/Events/EventData.php similarity index 95% rename from sources/Application/Service/EventData.php rename to sources/Application/Service/Events/EventData.php index efe42039d..93f82ced0 100644 --- a/sources/Application/Service/EventData.php +++ b/sources/Application/Service/Events/EventData.php @@ -1,10 +1,10 @@ RegisterEventsAndListeners(); } @@ -114,7 +114,7 @@ class EventService * Fire an event. Call all the callbacks registered for this event. * * @api - * @param \Combodo\iTop\Service\EventData $oEventData + * @param \Combodo\iTop\Service\Events\EventData $oEventData * * @throws \Exception from the callback */ @@ -282,7 +282,7 @@ class EventService * This step is mandatory before firing an event. * * @api - * @param \Combodo\iTop\Service\Description\EventDescription $oEventDescription + * @param \Combodo\iTop\Service\Events\Description\EventDescription $oEventDescription * * @return void */ diff --git a/sources/Application/Service/iEventServiceSetup.php b/sources/Application/Service/Events/iEventServiceSetup.php similarity index 91% rename from sources/Application/Service/iEventServiceSetup.php rename to sources/Application/Service/Events/iEventServiceSetup.php index 713fc3144..54b4cdfeb 100644 --- a/sources/Application/Service/iEventServiceSetup.php +++ b/sources/Application/Service/Events/iEventServiceSetup.php @@ -4,7 +4,7 @@ * @license http://opensource.org/licenses/AGPL-3.0 */ -namespace Combodo\iTop\Service; +namespace Combodo\iTop\Service\Events; /** * Interface to implement in order to register the events and listeners