shlink/config/autoload/dependencies.global.php

29 lines
805 B
PHP
Raw Normal View History

2016-04-10 10:38:07 +03:00
<?php
declare(strict_types=1);
use Shlinkio\Shlink\Common\Factory\EmptyResponseImplicitOptionsMiddlewareFactory;
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;
use Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware;
use Zend\ServiceManager\Factory\InvokableFactory;
2016-04-10 10:38:07 +03:00
return [
'dependencies' => [
2016-04-10 10:38:07 +03:00
'factories' => [
ImplicitOptionsMiddleware::class => EmptyResponseImplicitOptionsMiddlewareFactory::class,
Helper\UrlHelper::class => Helper\UrlHelperFactory::class,
Helper\ServerUrlHelper::class => InvokableFactory::class,
],
2018-03-26 19:49:28 +03:00
'delegators' => [
Expressive\Application::class => [
Container\ApplicationConfigInjectionDelegator::class,
],
],
2016-04-10 10:38:07 +03:00
],
];