mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 07:33:58 -06:00
21 lines
505 B
PHP
21 lines
505 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Laminas\ConfigAggregator\ConfigAggregator;
|
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
|
|
|
return (function () {
|
|
$isDev = EnvVars::isDevEnv();
|
|
|
|
return [
|
|
|
|
'debug' => $isDev,
|
|
|
|
// Disabling config cache for cli, ensures it's never used for RoadRunner, and also that console
|
|
// commands don't generate a cache file that's then used by php-fpm web executions
|
|
ConfigAggregator::ENABLE_CACHE => ! $isDev && PHP_SAPI !== 'cli',
|
|
|
|
];
|
|
})();
|