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