Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0
This commit is contained in:
parent
2f563ab520
commit
f1c8716f57
1732 changed files with 52334 additions and 11780 deletions
15
sites/default/default.services.pantheon.preproduction.yml
Normal file
15
sites/default/default.services.pantheon.preproduction.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#
|
||||
# Rename this file to 'services.pantheon.preproduction.yml' and
|
||||
# modify to suit. It will then be loaded by settings.pantheon.php
|
||||
# on any dev or multidev environment (not on 'test' or 'live').
|
||||
#
|
||||
# If you would like to define any services or service parameters
|
||||
# that apply only to production environments ('test' and 'live'),
|
||||
# you may do so in a 'services.pantheon.production.yml' file.
|
||||
#
|
||||
# See 'default.services.yml' for information on useful settings to
|
||||
# put here.
|
||||
#
|
||||
parameters:
|
||||
twig.config:
|
||||
debug: true
|
||||
|
|
@ -153,3 +153,22 @@ parameters:
|
|||
- sftp
|
||||
- webcal
|
||||
- rtsp
|
||||
|
||||
# Configure Cross-Site HTTP requests (CORS).
|
||||
# Read https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
|
||||
# for more information about the topic in general.
|
||||
# Note: By default the configuration is disabled.
|
||||
cors.config:
|
||||
enabled: false
|
||||
# Specify allowed headers, like 'x-allowed-header'.
|
||||
allowedHeaders: []
|
||||
# Specify allowed request methods, specify ['*'] to allow all possible ones.
|
||||
allowedMethods: []
|
||||
# Configure requests allowed from specific origins.
|
||||
allowedOrigins: ['*']
|
||||
# Sets the Access-Control-Expose-Headers header.
|
||||
exposedHeaders: false
|
||||
# Sets the Access-Control-Max-Age header.
|
||||
maxAge: false
|
||||
# Sets the Access-Control-Allow-Credentials header.
|
||||
supportsCredentials: false
|
||||
|
|
|
|||
|
|
@ -417,6 +417,20 @@ $settings['update_free_access'] = FALSE;
|
|||
*/
|
||||
# $settings['omit_vary_cookie'] = TRUE;
|
||||
|
||||
|
||||
/**
|
||||
* Cache TTL for client error (4xx) responses.
|
||||
*
|
||||
* Items cached per-URL tend to result in a large number of cache items, and
|
||||
* this can be problematic on 404 pages which by their nature are unbounded. A
|
||||
* fixed TTL can be set for these items, defaulting to one hour, so that cache
|
||||
* backends which do not support LRU can purge older entries. To disable caching
|
||||
* of client error responses set the value to 0. Currently applies only to
|
||||
* page_cache module.
|
||||
*/
|
||||
# $settings['cache_ttl_4xx'] = 3600;
|
||||
|
||||
|
||||
/**
|
||||
* Class Loader.
|
||||
*
|
||||
|
|
@ -664,6 +678,15 @@ $settings['container_yamls'][] = __DIR__ . '/services.yml';
|
|||
*/
|
||||
# $settings['container_base_class'] = '\Drupal\Core\DependencyInjection\Container';
|
||||
|
||||
/**
|
||||
* Override the default yaml parser class.
|
||||
*
|
||||
* Provide a fully qualified class name here if you would like to provide an
|
||||
* alternate implementation YAML parser. The class must implement the
|
||||
* \Drupal\Component\Serialization\SerializationInterface interface.
|
||||
*/
|
||||
# $settings['yaml_parser_class'] = NULL;
|
||||
|
||||
/**
|
||||
* Trusted host configuration.
|
||||
*
|
||||
|
|
@ -701,6 +724,21 @@ $settings['container_yamls'][] = __DIR__ . '/services.yml';
|
|||
* example.org, with all subdomains included.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The default list of directories that will be ignored by Drupal's file API.
|
||||
*
|
||||
* By default ignore node_modules and bower_components folders to avoid issues
|
||||
* with common frontend tools and recursive scanning of directories looking for
|
||||
* extensions.
|
||||
*
|
||||
* @see file_scan_directory()
|
||||
* @see \Drupal\Core\Extension\ExtensionDiscovery::scanDirectory()
|
||||
*/
|
||||
$settings['file_scan_ignore_directories'] = [
|
||||
'node_modules',
|
||||
'bower_components',
|
||||
];
|
||||
|
||||
/**
|
||||
* Include the Pantheon-specific settings file.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -25,7 +25,25 @@
|
|||
* not to any Drupal files.
|
||||
*/
|
||||
if (!defined("PANTHEON_VERSION")) {
|
||||
define("PANTHEON_VERSION", "2");
|
||||
define("PANTHEON_VERSION", "3");
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether this is a preproduction or production environment, and
|
||||
* then load the pantheon services.yml file. This file should be named either
|
||||
* 'pantheon-production-services.yml' (for 'live' or 'test' environments)
|
||||
* 'pantheon-preproduction-services.yml' (for 'dev' or multidev environments).
|
||||
*/
|
||||
$pantheon_services_file = __DIR__ . '/services.pantheon.preproduction.yml';
|
||||
if (
|
||||
isset($_ENV['PANTHEON_ENVIRONMENT']) &&
|
||||
( ($_ENV['PANTHEON_ENVIRONMENT'] == 'live') || ($_ENV['PANTHEON_ENVIRONMENT'] == 'test') )
|
||||
) {
|
||||
$pantheon_services_file = __DIR__ . '/services.pantheon.production.yml';
|
||||
}
|
||||
|
||||
if (file_exists($pantheon_services_file)) {
|
||||
$settings['container_yamls'][] = $pantheon_services_file;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -136,3 +154,20 @@ if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* The default list of directories that will be ignored by Drupal's file API.
|
||||
*
|
||||
* By default ignore node_modules and bower_components folders to avoid issues
|
||||
* with common frontend tools and recursive scanning of directories looking for
|
||||
* extensions.
|
||||
*
|
||||
* @see file_scan_directory()
|
||||
* @see \Drupal\Core\Extension\ExtensionDiscovery::scanDirectory()
|
||||
*/
|
||||
if (empty($settings['file_scan_ignore_directories'])) {
|
||||
$settings['file_scan_ignore_directories'] = [
|
||||
'node_modules',
|
||||
'bower_components',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue