Closed boesing closed 3 years ago
This PR is based on #69 and thus contains changes from that PR.
@michalbundyra I've reverted the changes you noted. If the changes are fine for you and if @weierophinney gives me the okay, I'd add this to 1.1.0 and ship it.
Description
With this feature, one can provide
--container=<path>
to provide a PSR-11 container which is not in a file calledconfig/container.php
.The original idea behind this feature is, that I can create a generic PSR-11 container file which then parses the current project for a file
ConfigProvider
so it can automagically provide a container for that component without having to copy & paste that file to all components while creating a directory calledconfig
which has to be added to my global.gitignore
.This actually works fine in almost all (laminas) components which provide a
config-provider
information within thecomposer.json
. I can re-use that file stored wherever I like tho and have a configured service manager (until the components has it either required as production or dev dependency).Imho, thats super helpful - may I should add this somewhere to the docs aswell?
Thoughts, @michalbundyra @weierophinney?
Fixes #63