Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Missing Zend Expressive 3 dependencies config format #588

Closed
oshdev opened this issue Mar 15, 2018 · 2 comments
Closed

Missing Zend Expressive 3 dependencies config format #588

oshdev opened this issue Mar 15, 2018 · 2 comments

Comments

@oshdev
Copy link

oshdev commented Mar 15, 2018

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
Copy link
Member

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

@weierophinney
Copy link
Member

@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.

weierophinney added a commit to weierophinney/zend-expressive that referenced this issue Mar 20, 2018
Per zendframework#588 and https://discourse.zendframework.com/t/zend-expressive-3-dependencies-config-format/531,
this patch provides a document with the specification for container
configuration that implementations MUST support in order to work with
Expressive applications.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants