mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
26 lines
774 B
PHP
26 lines
774 B
PHP
<?php
|
|
use Acelaya\UrlShortener\Middleware;
|
|
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
|
|
use Doctrine\Common\Cache\Cache;
|
|
use Doctrine\ORM\EntityManager;
|
|
use Shlinkio\Shlink\Common\Factory\CacheFactory;
|
|
use Shlinkio\Shlink\Common\Factory\EntityManagerFactory;
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
|
|
return [
|
|
|
|
'services' => [
|
|
'factories' => [
|
|
EntityManager::class => EntityManagerFactory::class,
|
|
GuzzleHttp\Client::class => InvokableFactory::class,
|
|
Cache::class => CacheFactory::class,
|
|
],
|
|
'aliases' => [
|
|
'em' => EntityManager::class,
|
|
'httpClient' => GuzzleHttp\Client::class,
|
|
AnnotatedFactory::CACHE_SERVICE => Cache::class,
|
|
],
|
|
],
|
|
|
|
];
|