mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 09:50:17 -06:00
50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use GuzzleHttp\Client;
|
|
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
|
use Mezzio\Application;
|
|
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' => [
|
|
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,
|
|
],
|
|
],
|
|
|
|
];
|