Zend Expressive 3 dependencies config format

Hey,

I was wondering if there’s a set convention for dependencies config in ZE3.
I can see that the skeleton installer uses Zend\ConfigAggregator\ConfigAggregator and then a separate file to builder container around the aggregated config. While I think this is a great approach and lets us use different container implementations, I couldn’t find any information what the config could look like in case I wanted to create my own adapter. It seems like it uses Zend Service Manager config, however I managed to find 3 keys of dependencies being used:

$dependencies = [
    'aliases' => [
        // ...
    ],
    'invokables' => [
        // ...
    ],
    'factories' => [
        // ...
    ],
];

I’m trying to write another container adapter that’s not included in the current installer and I think it would be nice if the spec was there somewhere. Otherwise the adapter can break at any time when I’ll be upgrading any of the core or optional ZE3 dependencies.

It’s a subset of zend-servicemanager config:

  • aliases
  • invokables
  • factories
  • delegators

Can you please raise an issue in the zend-expressive repository asking for this information?

Thanks!

1 Like

The issue can be found here: https://github.com/zendframework/zend-expressive/issues/588