diff --git a/config/routes.php b/config/routes.php index 1c4f70f722..50dee91cf9 100644 --- a/config/routes.php +++ b/config/routes.php @@ -24,7 +24,12 @@ use Cake\Routing\Route\DashedRoute; use Cake\Routing\RouteBuilder; -return static function (RouteBuilder $routes) { +/* + * This file is loaded in the context of the `Application` class. + * So you can use `$this` to reference the application class instance + * if required. + */ +return function (RouteBuilder $routes) { /* * The default class to use for all routes *