mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-23 21:27:44 +03:00
48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use GuzzleHttp\Client;
|
|
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
|
use Mezzio\Container;
|
|
use Psr\Http\Client\ClientInterface;
|
|
use Psr\Http\Message\ServerRequestFactoryInterface;
|
|
use Psr\Http\Message\StreamFactoryInterface;
|
|
use Psr\Http\Message\UploadedFileFactoryInterface;
|
|
use Spiral\RoadRunner\Http\PSR7Worker;
|
|
use Spiral\RoadRunner\WorkerInterface;
|
|
|
|
return [
|
|
|
|
'dependencies' => [
|
|
'factories' => [
|
|
PSR7Worker::class => ConfigAbstractFactory::class,
|
|
],
|
|
|
|
'delegators' => [
|
|
Mezzio\Application::class => [
|
|
Container\ApplicationConfigInjectionDelegator::class,
|
|
],
|
|
],
|
|
|
|
'aliases' => [
|
|
ClientInterface::class => Client::class,
|
|
],
|
|
|
|
'lazy_services' => [
|
|
'proxies_target_dir' => 'data/proxies',
|
|
'proxies_namespace' => 'ShlinkProxy',
|
|
'write_proxy_files' => true,
|
|
],
|
|
],
|
|
|
|
ConfigAbstractFactory::class => [
|
|
PSR7Worker::class => [
|
|
WorkerInterface::class,
|
|
ServerRequestFactoryInterface::class,
|
|
StreamFactoryInterface::class,
|
|
UploadedFileFactoryInterface::class,
|
|
],
|
|
],
|
|
|
|
];
|