mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 15:40:33 -06:00
25 lines
771 B
PHP
25 lines
771 B
PHP
<?php
|
|
use Shlinkio\Shlink\Common\ErrorHandler\ContentBasedErrorHandler;
|
|
use Zend\Expressive;
|
|
use Zend\Expressive\Container;
|
|
use Zend\Expressive\Router;
|
|
use Zend\Expressive\Template;
|
|
use Zend\Expressive\Twig;
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
|
|
return [
|
|
|
|
'dependencies' => [
|
|
'factories' => [
|
|
Expressive\Application::class => Container\ApplicationFactory::class,
|
|
Router\FastRouteRouter::class => InvokableFactory::class,
|
|
Template\TemplateRendererInterface::class => Twig\TwigRendererFactory::class,
|
|
],
|
|
'aliases' => [
|
|
Router\RouterInterface::class => Router\FastRouteRouter::class,
|
|
'Zend\Expressive\FinalHandler' => ContentBasedErrorHandler::class,
|
|
],
|
|
],
|
|
|
|
];
|