Introduce the concept of modules.
This would allow for modules, think third party checks/results to introduce container bindings.
We could make this a manual process, for example
$app->registerModule(SomeModule::class);
SomeModule::class would be an entry point class which would implement something like ModuleInterface and would define methods to retrieve DI config and other stuff.
Or:
We could use some composer events to automatically register modules somehow based on a package type. eg php-school-module
Introduce the concept of modules.
This would allow for modules, think third party checks/results to introduce container bindings.
We could make this a manual process, for example
SomeModule::classwould be an entry point class which would implement something likeModuleInterfaceand would define methods to retrieve DI config and other stuff.Or:
We could use some composer events to automatically register modules somehow based on a package type. eg
php-school-module