|
22 | 22 | * 'sites/default' will be used.
|
23 | 23 | *
|
24 | 24 | * For example, for a fictitious site installed at
|
25 |
| - * http://www.drupal.org:8080/mysite/test/, the 'settings.php' file is searched |
| 25 | + * https://www.drupal.org:8080/mysite/test/, the 'settings.php' file is searched |
26 | 26 | * for in the following directories:
|
27 | 27 | *
|
28 | 28 | * - sites/8080.www.drupal.org.mysite.test
|
|
44 | 44 | *
|
45 | 45 | * Note that if you are installing on a non-standard port number, prefix the
|
46 | 46 | * hostname with that number. For example,
|
47 |
| - * http://www.drupal.org:8080/mysite/test/ could be loaded from |
| 47 | + * https://www.drupal.org:8080/mysite/test/ could be loaded from |
48 | 48 | * sites/8080.www.drupal.org.mysite.test/.
|
49 | 49 | *
|
50 | 50 | * @see example.sites.php
|
51 |
| - * @see conf_path() |
| 51 | + * @see \Drupal\Core\DrupalKernel::getSitePath() |
52 | 52 | *
|
53 | 53 | * In addition to customizing application settings through variables in
|
54 | 54 | * settings.php, you can create a services.yml file in the same directory to
|
|
75 | 75 | * 'host' => 'localhost',
|
76 | 76 | * 'port' => 3306,
|
77 | 77 | * 'prefix' => 'myprefix_',
|
78 |
| - * 'collation' => 'utf8_general_ci', |
| 78 | + * 'collation' => 'utf8mb4_general_ci', |
79 | 79 | * );
|
80 | 80 | * @endcode
|
81 | 81 | *
|
|
127 | 127 | * 'password' => 'password',
|
128 | 128 | * 'host' => 'localhost',
|
129 | 129 | * 'prefix' => 'main_',
|
130 |
| - * 'collation' => 'utf8_general_ci', |
| 130 | + * 'collation' => 'utf8mb4_general_ci', |
131 | 131 | * );
|
132 | 132 | * @endcode
|
133 | 133 | *
|
|
255 | 255 | * @see \Drupal\Core\Site\Settings::get()
|
256 | 256 | */
|
257 | 257 |
|
| 258 | +/** |
| 259 | + * The active installation profile. |
| 260 | + * |
| 261 | + * Changing this after installation is not recommended as it changes which |
| 262 | + * directories are scanned during extension discovery. If this is set prior to |
| 263 | + * installation this value will be rewritten according to the profile selected |
| 264 | + * by the user. |
| 265 | + * |
| 266 | + * @see install_select_profile() |
| 267 | + */ |
| 268 | +# $settings['install_profile'] = ''; |
| 269 | + |
258 | 270 | /**
|
259 | 271 | * Salt for one-time login links, cancel links, form tokens, etc.
|
260 | 272 | *
|
|
274 | 286 | */
|
275 | 287 | $settings['hash_salt'] = '';
|
276 | 288 |
|
| 289 | +/** |
| 290 | + * Deployment identifier. |
| 291 | + * |
| 292 | + * Drupal's dependency injection container will be automatically invalidated and |
| 293 | + * rebuilt when the Drupal core version changes. When updating contributed or |
| 294 | + * custom code that changes the container, changing this identifier will also |
| 295 | + * allow the container to be invalidated as soon as code is deployed. |
| 296 | + */ |
| 297 | +# $settings['deployment_identifier'] = \Drupal::VERSION; |
| 298 | + |
277 | 299 | /**
|
278 | 300 | * Access control for update.php script.
|
279 | 301 | *
|
|
371 | 393 | /**
|
372 | 394 | * Class Loader.
|
373 | 395 | *
|
374 |
| - * By default, Composer's ClassLoader is used, which is best for development, as |
375 |
| - * it does not break when code is moved in the file system. You can decorate the |
376 |
| - * class loader with a cached solution for better performance, which is |
377 |
| - * recommended for production sites. |
378 |
| - * |
379 |
| - * To do so, you may decorate and replace the local $class_loader variable. |
380 |
| - * |
381 |
| - * For example, to use Symfony's APC class loader, uncomment the code below. |
| 396 | + * If the APC extension is detected, the Symfony APC class loader is used for |
| 397 | + * performance reasons. Detection can be prevented by setting |
| 398 | + * class_loader_auto_detect to false, as in the example below. |
| 399 | + */ |
| 400 | +# $settings['class_loader_auto_detect'] = FALSE; |
| 401 | + |
| 402 | +/* |
| 403 | + * If the APC extension is not detected, either because APC is missing or |
| 404 | + * because auto-detection has been disabled, auto-loading falls back to |
| 405 | + * Composer's ClassLoader, which is good for development as it does not break |
| 406 | + * when code is moved in the file system. You can also decorate the base class |
| 407 | + * loader with another cached solution than the Symfony APC class loader, as |
| 408 | + * all production sites should have a cached class loader of some sort enabled. |
| 409 | + * |
| 410 | + * To do so, you may decorate and replace the local $class_loader variable. For |
| 411 | + * example, to use Symfony's APC class loader without automatic detection, |
| 412 | + * uncomment the code below. |
382 | 413 | */
|
383 | 414 | /*
|
384 | 415 | if ($settings['hash_salt']) {
|
385 |
| - $apc_loader = new \Symfony\Component\ClassLoader\ApcClassLoader('drupal.' . $settings['hash_salt'], $class_loader); |
| 416 | + $prefix = 'drupal.' . hash('sha256', 'drupal.' . $settings['hash_salt']); |
| 417 | + $apc_loader = new \Symfony\Component\ClassLoader\ApcClassLoader($prefix, $class_loader); |
| 418 | + unset($prefix); |
386 | 419 | $class_loader->unregister();
|
387 | 420 | $apc_loader->register();
|
388 | 421 | $class_loader = $apc_loader;
|
|
407 | 440 | * the code directly via SSH or FTP themselves. This setting completely
|
408 | 441 | * disables all functionality related to these authorized file operations.
|
409 | 442 | *
|
410 |
| - * @see http://drupal.org/node/244924 |
| 443 | + * @see https://www.drupal.org/node/244924 |
411 | 444 | *
|
412 | 445 | * Remove the leading hash signs to disable.
|
413 | 446 | */
|
|
434 | 467 | * Private file path:
|
435 | 468 | *
|
436 | 469 | * A local file system path where private files will be stored. This directory
|
437 |
| - * must be absolute, outside of the the Drupal installation directory and not |
| 470 | + * must be absolute, outside of the Drupal installation directory and not |
438 | 471 | * accessible over the web.
|
439 | 472 | *
|
440 | 473 | * Note: Caches need to be cleared when this value is changed to make the
|
441 | 474 | * private:// stream wrapper available to the system.
|
442 | 475 | *
|
443 |
| - * See http://drupal.org/documentation/modules/file for more information about |
444 |
| - * securing private files. |
| 476 | + * See https://www.drupal.org/documentation/modules/file for more information |
| 477 | + * about securing private files. |
445 | 478 | */
|
446 | 479 | # $settings['file_private_path'] = '';
|
447 | 480 |
|
|
0 commit comments