mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 07:33:58 -06:00
36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink;
|
|
|
|
use Zend\ConfigAggregator;
|
|
use Zend\Expressive;
|
|
use Zend\ProblemDetails;
|
|
|
|
use function Shlinkio\Shlink\Common\env;
|
|
|
|
return (new ConfigAggregator\ConfigAggregator([
|
|
Expressive\ConfigProvider::class,
|
|
Expressive\Router\ConfigProvider::class,
|
|
Expressive\Router\FastRouteRouter\ConfigProvider::class,
|
|
Expressive\Plates\ConfigProvider::class,
|
|
Expressive\Swoole\ConfigProvider::class,
|
|
ProblemDetails\ConfigProvider::class,
|
|
Common\ConfigProvider::class,
|
|
IpGeolocation\ConfigProvider::class,
|
|
Core\ConfigProvider::class,
|
|
CLI\ConfigProvider::class,
|
|
Rest\ConfigProvider::class,
|
|
EventDispatcher\ConfigProvider::class,
|
|
PreviewGenerator\ConfigProvider::class,
|
|
new ConfigAggregator\PhpFileProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
|
|
env('APP_ENV') === 'test'
|
|
? new ConfigAggregator\PhpFileProvider('config/test/*.global.php')
|
|
: new ConfigAggregator\ZendConfigProvider('config/params/{generated_config.php,*.config.{php,json}}'),
|
|
], 'data/cache/app_config.php', [
|
|
Core\Config\SimplifiedConfigParser::class,
|
|
Core\Config\BasePathPrefixer::class,
|
|
Core\Config\DeprecatedConfigParser::class,
|
|
]))->getMergedConfig();
|