2016-04-10 10:38:07 +03:00
|
|
|
<?php
|
2016-07-30 14:51:52 +03:00
|
|
|
use Shlinkio\Shlink\Common\ErrorHandler\ContentBasedErrorHandler;
|
2016-07-06 00:25:39 +03:00
|
|
|
use Zend\Expressive;
|
2016-04-10 10:38:07 +03:00
|
|
|
use Zend\Expressive\Container;
|
|
|
|
use Zend\Expressive\Router;
|
|
|
|
use Zend\Expressive\Template;
|
2016-04-17 21:27:24 +03:00
|
|
|
use Zend\Expressive\Twig;
|
|
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
2016-04-10 10:38:07 +03:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2016-07-31 17:30:05 +03:00
|
|
|
'dependencies' => [
|
2016-04-10 10:38:07 +03:00
|
|
|
'factories' => [
|
2016-07-06 00:25:39 +03:00
|
|
|
Expressive\Application::class => Container\ApplicationFactory::class,
|
2016-04-30 19:59:03 +03:00
|
|
|
Router\FastRouteRouter::class => InvokableFactory::class,
|
2016-04-17 21:27:24 +03:00
|
|
|
Template\TemplateRendererInterface::class => Twig\TwigRendererFactory::class,
|
2016-04-10 10:38:07 +03:00
|
|
|
],
|
2016-04-17 21:27:24 +03:00
|
|
|
'aliases' => [
|
2016-04-30 19:59:03 +03:00
|
|
|
Router\RouterInterface::class => Router\FastRouteRouter::class,
|
2016-07-30 11:08:21 +03:00
|
|
|
'Zend\Expressive\FinalHandler' => ContentBasedErrorHandler::class,
|
2016-07-19 18:17:37 +03:00
|
|
|
],
|
2016-04-10 10:38:07 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|