Skip to content
Snippets Groups Projects
Commit e5a896b9 authored by catch's avatar catch
Browse files

Issue #2315613 by damiankloip, Wim Leers: Add a services.local.yml for development.

parent 23944a1e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -38,10 +38,6 @@ services:
class: Drupal\Core\Cache\ApcuBackendFactory
cache.backend.php:
class: Drupal\Core\Cache\PhpBackendFactory
cache.backend.memory:
class: Drupal\Core\Cache\MemoryBackendFactory
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
cache.bootstrap:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
......
......@@ -526,8 +526,8 @@ public function discoverServiceProviders() {
}
}
}
if (!empty($GLOBALS['conf']['container_yamls'])) {
$this->serviceYamls['site'] = $GLOBALS['conf']['container_yamls'];
if ($container_yamls = Settings::get('container_yamls')) {
$this->serviceYamls['site'] = $container_yamls;
}
if (file_exists($site_services_yml = $this->getSitePath() . '/services.yml')) {
$this->serviceYamls['site'][] = $site_services_yml;
......
# Local development services.
#
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
services:
cache.backend.memory:
class: Drupal\Core\Cache\MemoryBackendFactory
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
......@@ -10,6 +10,9 @@
* mention 'settings.local.php'.
*/
// Enable local development services.
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
// Show all error messages, with backtrace information.
$config['system.logging']['error_level'] = 'verbose';
......@@ -17,7 +20,8 @@
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
// Disable the render cache, by using the Null cache back-end.
// Disable the render cache, by using the Null cache back-end defined by the
// development.services.yml file above.
$settings['cache']['bins']['render'] = 'cache.backend.null';
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment