shlink/config/autoload/dependencies.global.php

30 lines
769 B
PHP
Raw Normal View History

2016-04-10 02:38:07 -05:00
<?php
declare(strict_types=1);
use Shlinkio\Shlink\Common\Factory\EmptyResponseImplicitOptionsMiddlewareFactory;
use Zend\Expressive;
2016-04-10 02:38:07 -05:00
use Zend\Expressive\Container;
use Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware;
2016-04-10 02:38:07 -05:00
return [
'dependencies' => [
2016-04-10 02:38:07 -05:00
'factories' => [
ImplicitOptionsMiddleware::class => EmptyResponseImplicitOptionsMiddlewareFactory::class,
],
2018-03-26 11:49:28 -05:00
'delegators' => [
Expressive\Application::class => [
Container\ApplicationConfigInjectionDelegator::class,
],
],
'lazy_services' => [
'proxies_target_dir' => 'data/proxies',
'proxies_namespace' => 'ShlinkProxy',
'write_proxy_files' => true,
],
2016-04-10 02:38:07 -05:00
],
];