mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-03 01:45:23 +03:00
24 lines
771 B
PHP
24 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,
|
|
],
|
|
],
|
|
|
|
];
|