From f97d5727072aa8cfcf44cb06c8f9af41bf8b1af1 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 2 Aug 2019 16:55:22 +0300 Subject: [PATCH] Flextype Core and Plugins: Doctrine Coding Standard #200 #186 - next round of code improvements --- flextype/routes/web.php | 2 +- site/plugins/admin/routes/web.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flextype/routes/web.php b/flextype/routes/web.php index ade26e4d..63725fb2 100644 --- a/flextype/routes/web.php +++ b/flextype/routes/web.php @@ -17,6 +17,6 @@ use Psr\Http\Message\ServerRequestInterface as Request; /** * Generates and returns the image response */ -$app->get('/image/{path:.+}', static function (Request $request, Response $response, array $args) use ($flextype) { +$app->get('/image/{path:.+}', function (Request $request, Response $response, array $args) use ($flextype) { return $flextype['images']->getImageResponse($args['path'], $_GET); }); diff --git a/site/plugins/admin/routes/web.php b/site/plugins/admin/routes/web.php index 9a0803f0..29e47392 100644 --- a/site/plugins/admin/routes/web.php +++ b/site/plugins/admin/routes/web.php @@ -5,14 +5,14 @@ declare(strict_types=1); namespace Flextype; // UsersController -$app->group('/' . $admin_route, static function () use ($app) : void { +$app->group('/' . $admin_route, function () use ($app) : void { $app->get('/installation', 'UsersController:installation')->setName('admin.users.installation'); $app->post('/installation', 'UsersController:installationProcess')->setName('admin.users.installationProcess'); $app->get('/login', 'UsersController:login')->setName('admin.users.login'); $app->post('/login', 'UsersController:loginProcess')->setName('admin.users.loginProcess'); }); -$app->group('/' . $admin_route, static function () use ($app) : void { +$app->group('/' . $admin_route, function () use ($app) : void { // Dashboard $app->get('', 'DashboardController:index')->setName('admin.dashboard.index');