2016-04-10 02:38:07 -05:00
|
|
|
<?php
|
2017-10-12 02:40:42 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-04-13 02:52:17 -05:00
|
|
|
use Shlinkio\Shlink\Common\Factory\EmptyResponseImplicitOptionsMiddlewareFactory;
|
2016-07-05 16:25:39 -05:00
|
|
|
use Zend\Expressive;
|
2016-04-10 02:38:07 -05:00
|
|
|
use Zend\Expressive\Container;
|
2017-10-12 03:13:20 -05:00
|
|
|
use Zend\Expressive\Helper;
|
2017-04-13 02:52:17 -05:00
|
|
|
use Zend\Expressive\Middleware;
|
2017-10-12 02:40:42 -05:00
|
|
|
use Zend\Expressive\Plates;
|
2016-04-10 02:38:07 -05:00
|
|
|
use Zend\Expressive\Router;
|
2018-03-26 10:53:22 -05:00
|
|
|
use Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware;
|
2016-04-10 02:38:07 -05:00
|
|
|
use Zend\Expressive\Template;
|
2017-10-12 02:40:42 -05:00
|
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
2017-03-24 15:10:25 -05:00
|
|
|
use Zend\Stratigility\Middleware\ErrorHandler;
|
2016-04-10 02:38:07 -05:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2016-07-31 09:30:05 -05:00
|
|
|
'dependencies' => [
|
2016-04-10 02:38:07 -05:00
|
|
|
'factories' => [
|
2018-03-26 10:53:22 -05:00
|
|
|
ImplicitOptionsMiddleware::class => EmptyResponseImplicitOptionsMiddlewareFactory::class,
|
2017-10-12 02:40:42 -05:00
|
|
|
|
|
|
|
Helper\UrlHelper::class => Helper\UrlHelperFactory::class,
|
|
|
|
Helper\ServerUrlHelper::class => InvokableFactory::class,
|
2016-07-19 10:17:37 -05:00
|
|
|
],
|
2018-03-26 10:53:22 -05:00
|
|
|
|
2018-03-26 11:49:28 -05:00
|
|
|
'delegators' => [
|
|
|
|
Expressive\Application::class => [
|
|
|
|
Container\ApplicationConfigInjectionDelegator::class,
|
|
|
|
],
|
2018-03-26 10:53:22 -05:00
|
|
|
],
|
2016-04-10 02:38:07 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|