shlink/config/autoload/dependencies.global.php

24 lines
702 B
PHP
Raw Normal View History

2016-04-10 09:38:07 +02:00
<?php
use Zend\Expressive;
2016-04-10 09:38:07 +02:00
use Zend\Expressive\Container;
use Zend\Expressive\Router;
use Zend\Expressive\Template;
2016-04-17 20:27:24 +02:00
use Zend\Expressive\Twig;
use Zend\ServiceManager\Factory\InvokableFactory;
2016-04-10 09:38:07 +02:00
return [
'dependencies' => [
2016-04-10 09:38:07 +02:00
'factories' => [
Expressive\Application::class => Container\ApplicationFactory::class,
Router\FastRouteRouter::class => InvokableFactory::class,
2016-04-17 20:27:24 +02:00
Template\TemplateRendererInterface::class => Twig\TwigRendererFactory::class,
\Twig_Environment::class => Twig\TwigEnvironmentFactory::class,
2016-04-10 09:38:07 +02:00
],
2016-04-17 20:27:24 +02:00
'aliases' => [
Router\RouterInterface::class => Router\FastRouteRouter::class,
],
2016-04-10 09:38:07 +02:00
],
];