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-10-12 11:13:20 +03:00
|
|
|
use Zend\Expressive\Helper;
|
2018-03-26 18:53:22 +03:00
|
|
|
use Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware;
|
2017-10-12 10:40:42 +03:00
|
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
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' => [
|
2018-03-26 18:53:22 +03:00
|
|
|
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
|
|
|
],
|
2018-03-26 18:53:22 +03:00
|
|
|
|
2018-03-26 19:49:28 +03:00
|
|
|
'delegators' => [
|
|
|
|
Expressive\Application::class => [
|
|
|
|
Container\ApplicationConfigInjectionDelegator::class,
|
|
|
|
],
|
2018-03-26 18:53:22 +03:00
|
|
|
],
|
2016-04-10 10:38:07 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|