cakephp / app

CakePHP application template
366 stars 390 forks source link

Remove `static` keyword from the function in routes.php. #956

Closed ADmad closed 11 months ago

ADmad commented 11 months ago

This allows using $this in the function to reference the application class instance. This is required for cases like building an AuthencationMiddleware instance.

ravage84 commented 11 months ago

When testing two of our CakePHP 4.4 applications, they run through the test suite with or without. 👍