Adjust event name to match the naming scheme
authorMarcel Werk <burntime@woltlab.com>
Mon, 11 Sep 2023 09:00:08 +0000 (11:00 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 11 Sep 2023 09:00:08 +0000 (11:00 +0200)
wcfsetup/install/files/lib/system/page/PageLocationManager.class.php
wcfsetup/install/files/lib/system/page/event/PageLocationResolving.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/page/event/ResolveCurrentPage.class.php [deleted file]

index f3b1914540ca2b5c48928638b2951f53cc6c5de6..d9c9e425342d31a97ba5d1a7ebb5413cd94cce17 100644 (file)
@@ -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 (file)
index 0000000..e3a7981
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace wcf\system\page\event;
+
+use wcf\data\page\Page;
+use wcf\system\event\IEvent;
+use wcf\system\request\Request;
+
+/**
+ * Indicates that the `PageLocationManager` could not determine the active page.
+ *
+ * @author  Marcel Werk
+ * @copyright   2001-2023 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @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 (file)
index 25510e3..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-namespace wcf\system\page\event;
-
-use wcf\data\page\Page;
-use wcf\system\event\IEvent;
-use wcf\system\request\Request;
-
-/**
- * Indicates that the `PageLocationManager` could not determine the active page.
- *
- * @author  Marcel Werk
- * @copyright   2001-2023 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @since   6.0
- */
-final class ResolveCurrentPage implements IEvent
-{
-    public Page|null $page = null;
-
-    public function __construct(public readonly Request $request)
-    {
-    }
-}