Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1. <?php
  2.  
  3. // @codingStandardsIgnoreFile
  4.  
  5. /**
  6. * @file
  7. * Local development override configuration feature.
  8. *
  9. * To activate this feature, copy and rename it such that its path plus
  10. * filename is 'sites/default/settings.local.php'. Then, go to the bottom of
  11. * 'sites/default/settings.php' and uncomment the commented lines that mention
  12. * 'settings.local.php'.
  13. *
  14. * If you are using a site name in the path, such as 'sites/example.com', copy
  15. * this file to 'sites/example.com/settings.local.php', and uncomment the lines
  16. * at the bottom of 'sites/example.com/settings.php'.
  17. */
  18.  
  19. /**
  20. * Assertions.
  21. *
  22. * The Drupal project primarily uses runtime assertions to enforce the
  23. * expectations of the API by failing when incorrect calls are made by code
  24. * under development.
  25. *
  26. * @see http://php.net/assert
  27. * @see https://www.drupal.org/node/2492225
  28. *
  29. * If you are using PHP 7.0 it is strongly recommended that you set
  30. * zend.assertions=1 in the PHP.ini file (It cannot be changed from .htaccess
  31. * or runtime) on development machines and to 0 in production.
  32. *
  33. * @see https://wiki.php.net/rfc/expectations
  34. */
  35. assert_options(ASSERT_ACTIVE, TRUE);
  36. \Drupal\Component\Assertion\Handle::register();
  37.  
  38. /**
  39. * Enable local development services.
  40. */
  41. $settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
  42.  
  43. /**
  44. * Show all error messages, with backtrace information.
  45. *
  46. * In case the error level could not be fetched from the database, as for
  47. * example the database connection failed, we rely only on this value.
  48. */
  49. $config['system.logging']['error_level'] = 'verbose';
  50.  
  51. /**
  52. * Disable CSS and JS aggregation.
  53. */
  54. $config['system.performance']['css']['preprocess'] = FALSE;
  55. $config['system.performance']['js']['preprocess'] = FALSE;
  56.  
  57. /**
  58. * Disable the render cache.
  59. *
  60. * Note: you should test with the render cache enabled, to ensure the correct
  61. * cacheability metadata is present. However, in the early stages of
  62. * development, you may want to disable it.
  63. *
  64. * This setting disables the render cache by using the Null cache back-end
  65. * defined by the development.services.yml file above.
  66. *
  67. * Only use this setting once the site has been installed.
  68. */
  69. #$settings['cache']['bins']['render'] = 'cache.backend.null';
  70. $settings['cache']['bins']['render'] = 'cache.backend.memory';
  71.  
  72. /**
  73. * Disable caching for migrations.
  74. *
  75. * Uncomment the code below to only store migrations in memory and not in the
  76. * database. This makes it easier to develop custom migrations.
  77. */
  78. # $settings['cache']['bins']['discovery_migration'] = 'cache.backend.memory';
  79.  
  80. /**
  81. * Disable Internal Page Cache.
  82. *
  83. * Note: you should test with Internal Page Cache enabled, to ensure the correct
  84. * cacheability metadata is present. However, in the early stages of
  85. * development, you may want to disable it.
  86. *
  87. * This setting disables the page cache by using the Null cache back-end
  88. * defined by the development.services.yml file above.
  89. *
  90. * Only use this setting once the site has been installed.
  91. */
  92. $settings['cache']['bins']['page'] = 'cache.backend.null';
  93.  
  94. /**
  95. * Disable Dynamic Page Cache.
  96. *
  97. * Note: you should test with Dynamic Page Cache enabled, to ensure the correct
  98. * cacheability metadata is present (and hence the expected behavior). However,
  99. * in the early stages of development, you may want to disable it.
  100. */
  101. $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
  102.  
  103. /**
  104. * Allow test modules and themes to be installed.
  105. *
  106. * Drupal ignores test modules and themes by default for performance reasons.
  107. * During development it can be useful to install test extensions for debugging
  108. * purposes.
  109. */
  110. # $settings['extension_discovery_scan_tests'] = TRUE;
  111.  
  112. /**
  113. * Enable access to rebuild.php.
  114. *
  115. * This setting can be enabled to allow Drupal's php and database cached
  116. * storage to be cleared via the rebuild.php page. Access to this page can also
  117. * be gained by generating a query string from rebuild_token_calculator.sh and
  118. * using these parameters in a request to rebuild.php.
  119. */
  120. $settings['rebuild_access'] = TRUE;
  121.  
  122. /**
  123. * Skip file system permissions hardening.
  124. *
  125. * The system module will periodically check the permissions of your site's
  126. * site directory to ensure that it is not writable by the website user. For
  127. * sites that are managed with a version control system, this can cause problems
  128. * when files in that directory such as settings.php are updated, because the
  129. * user pulling in the changes won't have permissions to modify files in the
  130. * directory.
  131. */
  132. $settings['skip_permissions_hardening'] = TRUE;
  133.  
  134. /**
  135. * Exclude modules from configuration synchronisation.
  136. *
  137. * On config export sync, no config or dependent config of any excluded module
  138. * is exported. On config import sync, any config of any installed excluded
  139. * module is ignored. In the exported configuration, it will be as if the
  140. * excluded module had never been installed. When syncing configuration, if an
  141. * excluded module is already installed, it will not be uninstalled by the
  142. * configuration synchronisation, and dependent configuration will remain
  143. * intact. This affects only configuration synchronisation; single import and
  144. * export of configuration are not affected.
  145. *
  146. * Drupal does not validate or sanity check the list of excluded modules. For
  147. * instance, it is your own responsibility to never exclude required modules,
  148. * because it would mean that the exported configuration can not be imported
  149. * anymore.
  150. *
  151. * This is an advanced feature and using it means opting out of some of the
  152. * guarantees the configuration synchronisation provides. It is not recommended
  153. * to use this feature with modules that affect Drupal in a major way such as
  154. * the language or field module.
  155. */
  156. # $settings['config_exclude_modules'] = ['devel', 'stage_file_proxy'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement