mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-27 16:26:37 +03:00
37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink;
|
|
|
|
use Laminas\ConfigAggregator;
|
|
use Laminas\ZendFrameworkBridge;
|
|
use Mezzio;
|
|
use Mezzio\ProblemDetails;
|
|
|
|
use function Shlinkio\Shlink\Common\env;
|
|
|
|
return (new ConfigAggregator\ConfigAggregator([
|
|
Mezzio\ConfigProvider::class,
|
|
Mezzio\Router\ConfigProvider::class,
|
|
Mezzio\Router\FastRouteRouter\ConfigProvider::class,
|
|
Mezzio\Plates\ConfigProvider::class,
|
|
Mezzio\Swoole\ConfigProvider::class,
|
|
ProblemDetails\ConfigProvider::class,
|
|
Common\ConfigProvider::class,
|
|
Config\ConfigProvider::class,
|
|
IpGeolocation\ConfigProvider::class,
|
|
EventDispatcher\ConfigProvider::class,
|
|
Core\ConfigProvider::class,
|
|
CLI\ConfigProvider::class,
|
|
Rest\ConfigProvider::class,
|
|
new ConfigAggregator\PhpFileProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
|
|
env('APP_ENV') === 'test'
|
|
? new ConfigAggregator\PhpFileProvider('config/test/*.global.php')
|
|
: new ConfigAggregator\LaminasConfigProvider('config/params/{generated_config.php,*.config.{php,json}}'),
|
|
], 'data/cache/app_config.php', [
|
|
ZendFrameworkBridge\ConfigPostProcessor::class,
|
|
Core\Config\SimplifiedConfigParser::class,
|
|
Core\Config\BasePathPrefixer::class,
|
|
Core\Config\DeprecatedConfigParser::class,
|
|
]))->getMergedConfig();
|