]> git.agnieray.net Git - galette.git/blobdiff - galette/includes/routes/main.routes.php
Merge branch 'hotfix/1.0.3'
[galette.git] / galette / includes / routes / main.routes.php
index 24a09ff77df2b9b819956f157416a968868e148a..cbd41cf15abd5330a01abba8eedd6718c21226ce 100644 (file)
@@ -69,7 +69,8 @@ $app->get(
 //system information - keep old route with typo ('s' on 'information') for now (0.9.4)
 $app->get(
     '/system-informations',
-    function ($request, $response) use ($routeparser) {
+    function ($request, $response) use ($container) {
+        $routeparser = $container->get(\Slim\Routing\RouteParser::class);
         return $response
             ->withStatus(302)
             ->withHeader('Location', $routeparser->urlFor('sysinfos'));