From a773f0d8a2fc704a8e78ae3795ed32df85424029 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Tue, 15 Mar 2022 17:53:38 +0100 Subject: [PATCH] EventService: refactoring --- sources/Application/WebPage/WebPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/Application/WebPage/WebPage.php b/sources/Application/WebPage/WebPage.php index 8655e5eb7..8b0c3ccc8 100644 --- a/sources/Application/WebPage/WebPage.php +++ b/sources/Application/WebPage/WebPage.php @@ -1350,11 +1350,13 @@ JS; ExecutionKPI::ReportStats(); } + const EVENT_SERVICE_AFTER_DISPLAY_PAGE = 'AfterDisplayPage'; + protected function FireAfterDisplayEvent() { $aData['debug_info'] = 'from: '.get_class($this).":[$this->s_title]"; $aData['object'] = $this; - EventService::FireEvent(new EventData(EVENT_SERVICE_AFTER_DISPLAY_PAGE, get_class($this), $aData)); + EventService::FireEvent(new EventData(self::EVENT_SERVICE_AFTER_DISPLAY_PAGE, get_class($this), $aData)); } /**