zendframework / zend-expressive

PSR-15 middleware in minutes!
BSD 3-Clause "New" or "Revised" License
711 stars 197 forks source link

Missing Zend Expressive 3 dependencies config format #588

Closed oshdev closed 6 years ago

oshdev commented 6 years ago

As per suggestion #372 it seems that Zend Expressive uses the following format: https://github.com/gabbydgab/zend-expressive-config-provider/blob/develop/src/ConfigProvider.php#L29 Can we please have those documented or even better - if possible - create an interface(s) so we could create adapters for various container implementations with ease and perhaps include more of the popular ones to the https://github.com/zendframework/zend-expressive-skeleton installer. For more information see https://discourse.zendframework.com/t/zend-expressive-3-dependencies-config-format/531

geerteltink commented 6 years ago

A good example is the dependencies.global.php in the skeleton, except it misses the delegators part.

weierophinney commented 6 years ago

@oshdev I can certainly document what configuration we expect to work across all implementations. However, how the implementations consume that configuration is really up to each.

We've started splitting that task into separate packages; you can see those here:

Ideally, we should expose these as composer plugins or to a composer plugin in order to copy artifacts into the project (e.g., to copy in the config/container.php file); we'll likely do that in the future.

In the meantime, I'll add a document detailing what config features implementors need to be compatible with.