Skip to content

Instantly share code, notes, and snippets.

@settermjd
Created October 30, 2015 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save settermjd/6c3357e94b2d0a093102 to your computer and use it in GitHub Desktop.
Save settermjd/6c3357e94b2d0a093102 to your computer and use it in GitHub Desktop.
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