2016-04-10 10:38:07 +03:00
|
|
|
<?php
|
2017-10-12 10:40:42 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
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;
|
2017-10-12 10:40:42 +03:00
|
|
|
use Zend\Expressive\Plates;
|
2016-04-10 10:38:07 +03:00
|
|
|
use Zend\Expressive\Router;
|
|
|
|
use Zend\Expressive\Template;
|
2017-10-12 10:40:42 +03:00
|
|
|
use Zend\Expressive\Helper;
|
|
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
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,
|
2017-10-12 10:40:42 +03:00
|
|
|
Template\TemplateRendererInterface::class => Plates\PlatesRendererFactory::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,
|
2017-10-12 10:40:42 +03:00
|
|
|
|
|
|
|
Helper\UrlHelper::class => Helper\UrlHelperFactory::class,
|
|
|
|
Helper\ServerUrlHelper::class => InvokableFactory::class,
|
2016-07-19 18:17:37 +03:00
|
|
|
],
|
2016-04-10 10:38:07 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|