From be70d6fdaeb9c4afb494e2b128008749d1d64c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Gonz=C3=A1lez?= Date: Wed, 2 Feb 2022 13:51:36 +0000 Subject: [PATCH] #fix-deprecation-router fix deprecation --- config/routes.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/routes.php b/config/routes.php index 6613a42..40e96a0 100644 --- a/config/routes.php +++ b/config/routes.php @@ -13,7 +13,10 @@ use Cake\Routing\Router; use Cake\Routing\RouteBuilder; -Router::plugin('CakeDC/Api', ['path' => '/api'], function ($routes) { +/** + * @var \Cake\Routing\RouteBuilder $routes + */ +$routes->plugin('CakeDC/Api', ['path' => '/api'], function ($routes) { $useVersioning = Configure::read('Api.useVersioning'); $versionPrefix = Configure::read('Api.versionPrefix'); $middlewares = Configure::read('Api.Middleware');