shlink/config/autoload/dependencies.global.php

53 lines
1.4 KiB
PHP
Raw Normal View History

2016-04-10 02:38:07 -05:00
<?php
2019-10-05 10:26:10 -05:00
declare(strict_types=1);
use GuzzleHttp\Client;
use Laminas\ServiceManager\AbstractFactory\ConfigAbstractFactory;
2024-02-21 10:57:45 -06:00
use Laminas\ServiceManager\Factory\InvokableFactory;
2023-05-17 01:57:36 -05:00
use Mezzio\Application;
2020-01-01 14:11:53 -06:00
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;
2024-02-21 10:57:45 -06:00
use Symfony\Component\Filesystem\Filesystem;
2016-04-10 02:38:07 -05:00
return [
'dependencies' => [
'factories' => [
PSR7Worker::class => ConfigAbstractFactory::class,
2024-02-21 10:57:45 -06:00
Filesystem::class => InvokableFactory::class,
],
2018-03-26 11:49:28 -05:00
'delegators' => [
2023-05-17 01:57:36 -05:00
Application::class => [
2018-03-26 11:49:28 -05:00
Container\ApplicationConfigInjectionDelegator::class,
],
],
'aliases' => [
ClientInterface::class => Client::class,
],
'lazy_services' => [
'proxies_target_dir' => 'data/proxies',
'proxies_namespace' => 'ShlinkProxy',
'write_proxy_files' => true,
],
2016-04-10 02:38:07 -05:00
],
ConfigAbstractFactory::class => [
PSR7Worker::class => [
WorkerInterface::class,
ServerRequestFactoryInterface::class,
StreamFactoryInterface::class,
UploadedFileFactoryInterface::class,
],
],
2016-04-10 02:38:07 -05:00
];