From: Marcel Werk Date: Mon, 11 Sep 2023 09:00:08 +0000 (+0200) Subject: Adjust event name to match the naming scheme X-Git-Tag: 6.0.0_RC_1~31 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=023309d2377c6534691b915b48fdf5fc44c6eaa1;p=GitHub%2FWoltLab%2FWCF.git Adjust event name to match the naming scheme --- diff --git a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php index f3b1914540..d9c9e42534 100644 --- a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php +++ b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php @@ -6,7 +6,7 @@ use wcf\data\ITitledLinkObject; use wcf\data\page\PageCache; use wcf\system\event\EventHandler; use wcf\system\exception\SystemException; -use wcf\system\page\event\ResolveCurrentPage; +use wcf\system\page\event\PageLocationResolving; use wcf\system\request\RequestHandler; use wcf\system\SingletonFactory; use wcf\system\WCF; @@ -55,7 +55,7 @@ class PageLocationManager extends SingletonFactory $page = PageCache::getInstance()->getPageByController($activeRequest->getClassName()); if ($page === null) { - $event = new ResolveCurrentPage($activeRequest); + $event = new PageLocationResolving($activeRequest); EventHandler::getInstance()->fire($event); $page = $event->page; } diff --git a/wcfsetup/install/files/lib/system/page/event/PageLocationResolving.class.php b/wcfsetup/install/files/lib/system/page/event/PageLocationResolving.class.php new file mode 100644 index 0000000000..e3a79818d3 --- /dev/null +++ b/wcfsetup/install/files/lib/system/page/event/PageLocationResolving.class.php @@ -0,0 +1,24 @@ + + * @since 6.0 + */ +final class PageLocationResolving implements IEvent +{ + public Page|null $page = null; + + public function __construct(public readonly Request $request) + { + } +} diff --git a/wcfsetup/install/files/lib/system/page/event/ResolveCurrentPage.class.php b/wcfsetup/install/files/lib/system/page/event/ResolveCurrentPage.class.php deleted file mode 100644 index 25510e34fd..0000000000 --- a/wcfsetup/install/files/lib/system/page/event/ResolveCurrentPage.class.php +++ /dev/null @@ -1,24 +0,0 @@ - - * @since 6.0 - */ -final class ResolveCurrentPage implements IEvent -{ - public Page|null $page = null; - - public function __construct(public readonly Request $request) - { - } -}