Skip to content
Snippets Groups Projects
settings.local.php.twig 1.85 KiB
<?php

$config['config_split.config_split.develop']['status'] = {{ live ? 'FALSE' : 'TRUE' }};
$config['config_split.config_split.live']['status'] = {{ live? 'TRUE' : 'FALSE' }};

$config['system.logging']['error_level'] = '{{ live ? 'hide' : 'verbose' }}';
$config['system.performance']['css']['preprocess'] = {{ live ? 'TRUE' : 'FALSE' }};
$config['system.performance']['js']['preprocess'] = {{ live ? 'TRUE' : 'FALSE' }};
$config['config_auto_export.settings']['enabled'] = {{ live ? 'TRUE':  'FALSE' }};

$settings['extension_discovery_scan_tests'] = {{ live ? 'FALSE' : 'TRUE' }};
$settings['rebuild_access'] = {{ live ? 'FALSE' : 'TRUE' }};
$settings['skip_permissions_hardening'] = {{ live ? 'FALSE' : 'TRUE' }};
{% if not live %}

{% set v = php.version|split('.') %}
{% if (v[0] == 8 and v[1] >= 3) or v[0] > 8 %}
// Skipping assert options
{% else %}
assert_options(ASSERT_ACTIVE, TRUE);
assert_options(ASSERT_EXCEPTION, TRUE);
{% endif %}
$settings['container_yamls'][] = __DIR__ . '/development.services.yml';
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
$config['advagg.settings']['enabled'] = FALSE;
{% endif %}

if (!getenv('L3D_DISABLE_REDIS') && file_exists('modules/contrib/redis/example.services.yml')) {
  $settings['redis.connection']['interface'] = 'PhpRedis';
  $settings['redis.connection']['host'] = 'redis';
  $settings['cache']['default'] = 'cache.backend.redis';
  $settings['container_yamls'][] = 'modules/contrib/redis/example.services.yml';
  $settings['queue_default'] = 'queue.redis';
}
$settings['cache']['bins']['bootstrap'] = 'cache.backend.chainedfast';
$settings['cache']['bins']['discovery'] = 'cache.backend.chainedfast';
$settings['cache']['bins']['config'] = 'cache.backend.chainedfast';
$settings['cache']['bins']['container'] = 'cache.backend.chainedfast';