mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-29 02:11:10 -06:00
27 lines
858 B
PHP
27 lines
858 B
PHP
<?php
|
|
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 Shlinkio\Shlink\Common\Service\IpLocationResolver;
|
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
|
|
|
return [
|
|
|
|
'services' => [
|
|
'factories' => [
|
|
EntityManager::class => EntityManagerFactory::class,
|
|
GuzzleHttp\Client::class => InvokableFactory::class,
|
|
Cache::class => CacheFactory::class,
|
|
IpLocationResolver::class => AnnotatedFactory::class,
|
|
],
|
|
'aliases' => [
|
|
'em' => EntityManager::class,
|
|
'httpClient' => GuzzleHttp\Client::class,
|
|
AnnotatedFactory::CACHE_SERVICE => Cache::class,
|
|
],
|
|
],
|
|
|
|
];
|