Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/DrupalKernel.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
316 * | 316 * |
317 * Site directories contain all site specific code. This includes settings.php | 317 * Site directories contain all site specific code. This includes settings.php |
318 * for bootstrap level configuration, file configuration stores, public file | 318 * for bootstrap level configuration, file configuration stores, public file |
319 * storage and site specific modules and themes. | 319 * storage and site specific modules and themes. |
320 * | 320 * |
321 * A file named sites.php must be present in the sites directory for | |
322 * multisite. If it doesn't exist, then 'sites/default' will be used. | |
323 * | |
321 * Finds a matching site directory file by stripping the website's hostname | 324 * Finds a matching site directory file by stripping the website's hostname |
322 * from left to right and pathname from right to left. By default, the | 325 * from left to right and pathname from right to left. By default, the |
323 * directory must contain a 'settings.php' file for it to match. If the | 326 * directory must contain a 'settings.php' file for it to match. If the |
324 * parameter $require_settings is set to FALSE, then a directory without a | 327 * parameter $require_settings is set to FALSE, then a directory without a |
325 * 'settings.php' file will match as well. The first configuration file found | 328 * 'settings.php' file will match as well. The first configuration file found |
326 * will be used and the remaining ones will be ignored. If no configuration | 329 * will be used and the remaining ones will be ignored. If no configuration |
327 * file is found, returns a default value 'sites/default'. See | 330 * file is found, returns a default value 'sites/default'. See |
328 * default.settings.php for examples on how the URL is converted to a | 331 * default.settings.php for examples on how the URL is converted to a |
329 * directory. | 332 * directory. |
330 * | 333 * |
331 * If a file named sites.php is present in the sites directory, it will be | 334 * The sites.php file in the sites directory can define aliases in an |
332 * loaded prior to scanning for directories. That file can define aliases in | 335 * associative array named $sites. The array is written in the format |
333 * an associative array named $sites. The array is written in the format | |
334 * '<port>.<domain>.<path>' => 'directory'. As an example, to create a | 336 * '<port>.<domain>.<path>' => 'directory'. As an example, to create a |
335 * directory alias for https://www.drupal.org:8080/mysite/test whose | 337 * directory alias for https://www.drupal.org:8080/mysite/test whose |
336 * configuration file is in sites/example.com, the array should be defined as: | 338 * configuration file is in sites/example.com, the array should be defined as: |
337 * @code | 339 * @code |
338 * $sites = array( | 340 * $sites = array( |
979 | 981 |
980 // Override PHP settings required for Drupal to work properly. | 982 // Override PHP settings required for Drupal to work properly. |
981 // sites/default/default.settings.php contains more runtime settings. | 983 // sites/default/default.settings.php contains more runtime settings. |
982 // The .htaccess file contains settings that cannot be changed at runtime. | 984 // The .htaccess file contains settings that cannot be changed at runtime. |
983 | 985 |
984 // Use session cookies, not transparent sessions that puts the session id in | 986 if (PHP_SAPI !== 'cli') { |
985 // the query string. | 987 // Use session cookies, not transparent sessions that puts the session id |
986 ini_set('session.use_cookies', '1'); | 988 // in the query string. |
987 ini_set('session.use_only_cookies', '1'); | 989 ini_set('session.use_cookies', '1'); |
988 ini_set('session.use_trans_sid', '0'); | 990 ini_set('session.use_only_cookies', '1'); |
989 // Don't send HTTP headers using PHP's session handler. | 991 ini_set('session.use_trans_sid', '0'); |
990 // Send an empty string to disable the cache limiter. | 992 // Don't send HTTP headers using PHP's session handler. |
991 ini_set('session.cache_limiter', ''); | 993 // Send an empty string to disable the cache limiter. |
992 // Use httponly session cookies. | 994 ini_set('session.cache_limiter', ''); |
993 ini_set('session.cookie_httponly', '1'); | 995 // Use httponly session cookies. |
996 ini_set('session.cookie_httponly', '1'); | |
997 } | |
994 | 998 |
995 // Set sane locale settings, to ensure consistent string, dates, times and | 999 // Set sane locale settings, to ensure consistent string, dates, times and |
996 // numbers handling. | 1000 // numbers handling. |
997 setlocale(LC_ALL, 'C'); | 1001 setlocale(LC_ALL, 'C'); |
998 | 1002 |