shlink/config/autoload/dependencies.global.php

25 lines
902 B
PHP
Raw Normal View History

2016-04-10 10:38:07 +03:00
<?php
use Shlinkio\Shlink\Common\Factory\EmptyResponseImplicitOptionsMiddlewareFactory;
use Zend\Expressive;
2016-04-10 10:38:07 +03:00
use Zend\Expressive\Container;
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;
use Zend\Stratigility\Middleware\ErrorHandler;
2016-04-10 10:38:07 +03:00
return [
'dependencies' => [
2016-04-10 10:38:07 +03:00
'factories' => [
Expressive\Application::class => Container\ApplicationFactory::class,
2016-04-17 21:27:24 +03:00
Template\TemplateRendererInterface::class => Twig\TwigRendererFactory::class,
\Twig_Environment::class => Twig\TwigEnvironmentFactory::class,
Router\RouterInterface::class => Router\FastRouteRouterFactory::class,
ErrorHandler::class => Container\ErrorHandlerFactory::class,
Middleware\ImplicitOptionsMiddleware::class => EmptyResponseImplicitOptionsMiddlewareFactory::class,
],
2016-04-10 10:38:07 +03:00
],
];