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;
|
2018-03-26 18:53:22 +03:00
|
|
|
use Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware;
|
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,
|
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
|
|
|
],
|
2018-11-12 22:22:42 +03:00
|
|
|
|
|
|
|
'lazy_services' => [
|
|
|
|
'proxies_target_dir' => 'data/proxies',
|
|
|
|
'proxies_namespace' => 'ShlinkProxy',
|
|
|
|
'write_proxy_files' => true,
|
|
|
|
],
|
2016-04-10 10:38:07 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|