mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-02 16:27:33 +03:00
32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php
|
|
use Zend\Expressive;
|
|
use Zend\Expressive\Container;
|
|
use Zend\Expressive\Helper;
|
|
use Zend\Expressive\Router;
|
|
use Zend\Expressive\Template;
|
|
use Zend\Expressive\Twig;
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
|
|
return [
|
|
|
|
'services' => [
|
|
'factories' => [
|
|
Expressive\Application::class => Container\ApplicationFactory::class,
|
|
|
|
// Url helpers
|
|
Helper\UrlHelper::class => Helper\UrlHelperFactory::class,
|
|
Helper\ServerUrlMiddleware::class => Helper\ServerUrlMiddlewareFactory::class,
|
|
Helper\UrlHelperMiddleware::class => Helper\UrlHelperMiddlewareFactory::class,
|
|
Helper\ServerUrlHelper::class => InvokableFactory::class,
|
|
Router\FastRouteRouter::class => InvokableFactory::class,
|
|
|
|
// View
|
|
'Zend\Expressive\FinalHandler' => Container\TemplatedErrorHandlerFactory::class,
|
|
Template\TemplateRendererInterface::class => Twig\TwigRendererFactory::class,
|
|
],
|
|
'aliases' => [
|
|
Router\RouterInterface::class => Router\FastRouteRouter::class,
|
|
],
|
|
],
|
|
|
|
];
|