sites/example.services.local.yml | 6 ++---- sites/example.settings.local.php | 12 ++++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/sites/example.services.local.yml b/sites/example.services.local.yml index efd059f..cc21211 100644 --- a/sites/example.services.local.yml +++ b/sites/example.services.local.yml @@ -1,9 +1,7 @@ # Local development services. # -# To activate this feature, copy and rename it such that its path plus -# filename is 'sites/yoursite.com/services.local.yml'. Then, go to the bottom -# of 'sites/yoursite.com/settings.local.yml' and uncomment the commented lines -# that mention 'services.local.yml'. +# 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 diff --git a/sites/example.settings.local.php b/sites/example.settings.local.php index 1779ffd..a2971bf 100644 --- a/sites/example.settings.local.php +++ b/sites/example.settings.local.php @@ -8,8 +8,16 @@ * filename is 'sites/yoursite.com/settings.local.php'. Then, go to the bottom * of 'sites/yoursite.com/settings.php' and uncomment the commented lines that * mention 'settings.local.php'. + * To use all functionality provided by this feature, you'll also want to copy + * and rename the sibling file 'example.services.local.yml' such that its path + * plus filename is 'sites/yoursite.com/services.local.yml'. */ +// Enable local development services. +if (file_exists(DRUPAL_ROOT . '/' . $site_path . '/services.local.yml')) { + $settings['container_yamls'][] = DRUPAL_ROOT . '/' . $site_path . '/services.local.yml'; +} + // Show all error messages, with backtrace information. $config['system.logging']['error_level'] = 'verbose'; @@ -17,10 +25,6 @@ $config['system.performance']['css']['preprocess'] = FALSE; $config['system.performance']['js']['preprocess'] = FALSE; -// Enable local services. -if (file_exists(DRUPAL_ROOT . '/' . $site_path . '/services.local.yml')) { - $settings['container_yamls'][] = DRUPAL_ROOT . '/' . $site_path . '/services.local.yml'; -} // Disable the render cache, by using the Null cache back-end defined by the // services.local.yml file above. $settings['cache']['bins']['render'] = 'cache.backend.null';