### Lagoon Drupal 8 development environment services file.
#
# This file should contain service definitions that are needed on development environments
#
# It contains some defaults that the Lagoon team suggests, please edit them as required.
#
parameters:
  twig.config:
    debug: true # displays twig debug messages, developers like them :)
    auto_reload: true # reloads the twig files on every request, so no drush cache clear is required
    cache: false # No twig internal cache, important: check the example.settings.loca.php to fully fully disable the twig cache

services:
  cache.backend.null: # Defines a Cache Backend Factory which is just empty, it is not used by default
    class: Drupal\Core\Cache\NullBackendFactory

### Lagoon Drupal 8 development environment services file.
#
# This file should contain service definitions that are needed on development environments
#
# It contains some defaults that the Lagoon team suggests, please edit them as required.
#
parameters:
  twig.config:
    debug: true # displays twig debug messages, developers like them :)
    auto_reload: true # reloads the twig files on every request, so no drush cache clear is required
    cache: true # Twig cache allows Xdebug to work with .twig files

services:
  cache.backend.null: # Defines a Cache Backend Factory which is just empty, it is not used by default
    class: Drupal\Core\Cache\NullBackendFactory

Allow Xdebug to work with .twig templates
Allow Xdebug to work with .twig templates

Disabling twig cache prevents Xdebug from working with .twig files. With twig cache enabled, you still don't need to do `drush cache clear` since `twig.config.auto_reload` is already set to true.