shlink/config/autoload/dependencies.global.php

31 lines
1.1 KiB
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;
use Zend\Expressive\Middleware;
use Zend\Expressive\Plates;
2016-04-10 10:38:07 +03:00
use Zend\Expressive\Router;
use Zend\Expressive\Template;
use Zend\Expressive\Helper;
use Zend\ServiceManager\Factory\InvokableFactory;
use Zend\Stratigility\Middleware\ErrorHandler;
2016-04-10 10:38:07 +03:00
return [
'dependencies' => [
2016-04-10 10:38:07 +03:00
'factories' => [
Expressive\Application::class => Container\ApplicationFactory::class,
Template\TemplateRendererInterface::class => Plates\PlatesRendererFactory::class,
Router\RouterInterface::class => Router\FastRouteRouterFactory::class,
ErrorHandler::class => Container\ErrorHandlerFactory::class,
Middleware\ImplicitOptionsMiddleware::class => EmptyResponseImplicitOptionsMiddlewareFactory::class,
Helper\UrlHelper::class => Helper\UrlHelperFactory::class,
Helper\ServerUrlHelper::class => InvokableFactory::class,
],
2016-04-10 10:38:07 +03:00
],
];