Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Zend-Expressive Dependencies configuration which adds Zend\Db and Zend\Cache support.
<?php
return [
'dependencies' => [
'invokables' => [
App\Action\PingAction::class => App\Action\PingAction::class,
],
'factories' => [
App\Action\HomePageAction::class => App\Action\HomePageFactory::class,
Zend\Expressive\Application::class => Zend\Expressive\Container\ApplicationFactory::class,
Zend\Db\Adapter\Adapter::class => Zend\Db\Adapter\AdapterServiceFactory::class
],
'abstract_factories' => [
Zend\Cache\Service\StorageCacheAbstractServiceFactory::class
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.