aboutsummaryrefslogtreecommitdiff
path: root/public/plugins.php
diff options
context:
space:
mode:
authoranoack <noack@data-quest.de>2025-01-17 16:24:02 +0100
committeranoack <noack@data-quest.de>2025-01-17 16:24:02 +0100
commitdcbfb38c104e9b695b89dcfbd2879c999c09d49c (patch)
tree60c417a13bc3fe71daf97e202a928c6e43dc78ae /public/plugins.php
parentddce12c92465e45f4456992990a5109c3c3f588e (diff)
re #5155 add registerSlimRoutes and getDispatcher in Plugins
Diffstat (limited to 'public/plugins.php')
-rw-r--r--public/plugins.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/plugins.php b/public/plugins.php
index 46c1679..c512dbf 100644
--- a/public/plugins.php
+++ b/public/plugins.php
@@ -51,9 +51,10 @@ $plugin_dispatch = function (ServerRequestInterface $request, RequestHandlerInte
// set default page title
PageLayout::setTitle($plugin->getPluginName());
-
- $route_callable = $plugin->getRouteCallable($unconsumed);
- $app->any(Request::pathInfo(), $route_callable);
+ $still_not_consumed = $plugin->registerSlimRoutes($unconsumed, $app);
+ if ($still_not_consumed !== false) {
+ $app->any(Request::pathInfo(), $plugin->getRouteCallable($still_not_consumed));
+ }
} catch (AccessDeniedException $ade) {
$_SESSION['redirect_after_login'] = Request::url();
$response = $responseFactory->createResponse(302);