AspireSync/code/config/config.php
Sarah Savage f55aef76ab Adding a command to explicitly pull latest plugin rev and random UA
* Added a command to pull the latest revision, for a single-thread
use case.
* Added random user agents for preventing Forbidden/Rate Limit errors
2024-10-01 06:53:03 -04:00

23 lines
No EOL
718 B
PHP

<?php
declare(strict_types=1);
use AssetGrabber\ConfigProvider;
use Laminas\ConfigAggregator\ConfigAggregator;
use Laminas\ConfigAggregator\PhpFileProvider;
$aggregator = new ConfigAggregator([
ConfigProvider::class,
// Load application config in a pre-defined order in such a way that local settings
// overwrite global settings. (Loaded as first to last):
// - `global.php`
// - `*.global.php`
// - `local.php`
// - `*.local.php`
new PhpFileProvider(realpath(__DIR__) . '/autoload/{{,*.}global,{,*.}local}.php'),
// Load development config if it exists
new PhpFileProvider(realpath(__DIR__) . '/development.config.php'),
]);
return $aggregator->getMergedConfig();