diff options
| author | anoack <noack@data-quest.de> | 2025-01-17 16:24:02 +0100 |
|---|---|---|
| committer | anoack <noack@data-quest.de> | 2025-01-17 16:24:02 +0100 |
| commit | dcbfb38c104e9b695b89dcfbd2879c999c09d49c (patch) | |
| tree | 60c417a13bc3fe71daf97e202a928c6e43dc78ae /public/plugins.php | |
| parent | ddce12c92465e45f4456992990a5109c3c3f588e (diff) | |
re #5155 add registerSlimRoutes and getDispatcher in Plugins
Diffstat (limited to 'public/plugins.php')
| -rw-r--r-- | public/plugins.php | 7 |
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); |
