2016-04-10 10:38:07 +03:00
|
|
|
<?php
|
2017-04-13 10:52:17 +03:00
|
|
|
use Shlinkio\Shlink\Common\Factory\EmptyResponseImplicitOptionsMiddlewareFactory;
|
2016-07-06 00:25:39 +03:00
|
|
|
use Zend\Expressive;
|
2016-04-10 10:38:07 +03:00
|
|
|
use Zend\Expressive\Container;
|
2017-04-13 10:52:17 +03:00
|
|
|
use Zend\Expressive\Middleware;
|
2016-04-10 10:38:07 +03:00
|
|
|
use Zend\Expressive\Router;
|
|
|
|
use Zend\Expressive\Template;
|
2016-04-17 21:27:24 +03:00
|
|
|
use Zend\Expressive\Twig;
|
2017-03-24 23:10:25 +03:00
|
|
|
use Zend\Stratigility\Middleware\ErrorHandler;
|
2016-04-10 10:38:07 +03:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2016-07-31 17:30:05 +03:00
|
|
|
'dependencies' => [
|
2016-04-10 10:38:07 +03:00
|
|
|
'factories' => [
|
2016-07-06 00:25:39 +03:00
|
|
|
Expressive\Application::class => Container\ApplicationFactory::class,
|
2016-04-17 21:27:24 +03:00
|
|
|
Template\TemplateRendererInterface::class => Twig\TwigRendererFactory::class,
|
2017-01-21 22:19:30 +03:00
|
|
|
\Twig_Environment::class => Twig\TwigEnvironmentFactory::class,
|
2017-01-22 13:07:18 +03:00
|
|
|
Router\RouterInterface::class => Router\FastRouteRouterFactory::class,
|
2017-03-24 23:10:25 +03:00
|
|
|
ErrorHandler::class => Container\ErrorHandlerFactory::class,
|
2017-04-13 10:52:17 +03:00
|
|
|
Middleware\ImplicitOptionsMiddleware::class => EmptyResponseImplicitOptionsMiddlewareFactory::class,
|
2016-07-19 18:17:37 +03:00
|
|
|
],
|
2016-04-10 10:38:07 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|