mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-30 23:44:03 +08:00
* Added a command to pull the latest revision, for a single-thread use case. * Added random user agents for preventing Forbidden/Rate Limit errors
23 lines
No EOL
718 B
PHP
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(); |