shlink/config/autoload/dependencies.global.php

34 lines
970 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;
2017-10-12 03:13:20 -05:00
use Zend\Expressive\Helper;
use Zend\Expressive\Middleware;
use Zend\Expressive\Plates;
2016-04-10 02:38:07 -05:00
use Zend\Expressive\Router;
use Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware;
2016-04-10 02:38:07 -05:00
use Zend\Expressive\Template;
use Zend\ServiceManager\Factory\InvokableFactory;
use Zend\Stratigility\Middleware\ErrorHandler;
2016-04-10 02:38:07 -05:00
return [
'dependencies' => [
2016-04-10 02:38:07 -05:00
'factories' => [
ImplicitOptionsMiddleware::class => EmptyResponseImplicitOptionsMiddlewareFactory::class,
Helper\UrlHelper::class => Helper\UrlHelperFactory::class,
Helper\ServerUrlHelper::class => InvokableFactory::class,
],
2018-03-26 11:49:28 -05:00
'delegators' => [
Expressive\Application::class => [
Container\ApplicationConfigInjectionDelegator::class,
],
],
2016-04-10 02:38:07 -05:00
],
];