cakephp / app

CakePHP application template
366 stars 390 forks source link

5.x: use plugin loading via configuration array #971

Closed LordSimal closed 9 months ago

LordSimal commented 9 months ago

I really like the new plugin loading functionality via config/plugins.php.

This allows the Application class to be pretty clean.

LordSimal commented 9 months ago

Seems weird that the DebugKit is not being loaded in the tests...

LordSimal commented 9 months ago

Ah, we do a include_once here but these tests require that this file can be loaded multiple times in the same PHP process.

ADmad commented 9 months ago

Thanks, this was my final goal, just never got around to finishing it :)

I eventually want plugin installing and enabling to be a single command process, not the 2 steps of composer install and bin/cake plugin load.

LordSimal commented 9 months ago

I eventually want plugin installing and enabling to be a single command process

yes, that would be the best scenario

markstory commented 9 months ago

I like the approach of using config/plugins.php more consistently :+1:

LordSimal commented 9 months ago

To get 8.1 lowest working here we would have to adjust the composer.json to "cakephp/cakephp": "^5.0.1",