2016-04-10 02:38:07 -05:00
|
|
|
<?php
|
2019-10-05 10:26:10 -05:00
|
|
|
|
2017-10-12 02:40:42 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-10-22 11:12:22 -05:00
|
|
|
use GuzzleHttp\Client;
|
2022-08-27 01:01:57 -05:00
|
|
|
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
2020-01-01 14:11:53 -06:00
|
|
|
use Mezzio\Container;
|
2020-10-22 11:12:22 -05:00
|
|
|
use Psr\Http\Client\ClientInterface;
|
2022-08-27 01:01:57 -05:00
|
|
|
use Psr\Http\Message\ServerRequestFactoryInterface;
|
|
|
|
use Psr\Http\Message\StreamFactoryInterface;
|
|
|
|
use Psr\Http\Message\UploadedFileFactoryInterface;
|
|
|
|
use Spiral\RoadRunner\Http\PSR7Worker;
|
|
|
|
use Spiral\RoadRunner\WorkerInterface;
|
2016-04-10 02:38:07 -05:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2016-07-31 09:30:05 -05:00
|
|
|
'dependencies' => [
|
2022-08-27 01:01:57 -05:00
|
|
|
'factories' => [
|
|
|
|
PSR7Worker::class => ConfigAbstractFactory::class,
|
|
|
|
],
|
|
|
|
|
2018-03-26 11:49:28 -05:00
|
|
|
'delegators' => [
|
2020-01-01 14:11:53 -06:00
|
|
|
Mezzio\Application::class => [
|
2018-03-26 11:49:28 -05:00
|
|
|
Container\ApplicationConfigInjectionDelegator::class,
|
|
|
|
],
|
2018-03-26 10:53:22 -05:00
|
|
|
],
|
2018-11-12 13:22:42 -06:00
|
|
|
|
2020-10-22 11:12:22 -05:00
|
|
|
'aliases' => [
|
|
|
|
ClientInterface::class => Client::class,
|
|
|
|
],
|
|
|
|
|
2018-11-12 13:22:42 -06:00
|
|
|
'lazy_services' => [
|
|
|
|
'proxies_target_dir' => 'data/proxies',
|
|
|
|
'proxies_namespace' => 'ShlinkProxy',
|
|
|
|
'write_proxy_files' => true,
|
|
|
|
],
|
2016-04-10 02:38:07 -05:00
|
|
|
],
|
|
|
|
|
2022-08-27 01:01:57 -05:00
|
|
|
ConfigAbstractFactory::class => [
|
|
|
|
PSR7Worker::class => [
|
|
|
|
WorkerInterface::class,
|
|
|
|
ServerRequestFactoryInterface::class,
|
|
|
|
StreamFactoryInterface::class,
|
|
|
|
UploadedFileFactoryInterface::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2016-04-10 02:38:07 -05:00
|
|
|
];
|