Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Site / Settings.php
index bdd2609a7c020b8fc387e6bc15c01aadaeedbbba..c6fbed659f98767b6979dade6a30a529fc7fb2a0 100644 (file)
@@ -84,6 +84,9 @@ final class Settings {
    *   The value of the setting, the provided default if not set.
    */
   public static function get($name, $default = NULL) {
+    if ($name === 'install_profile' && isset(self::$instance->storage[$name])) {
+      @trigger_error('To access the install profile in Drupal 8 use \Drupal::installProfile() or inject the install_profile container parameter into your service. See https://www.drupal.org/node/2538996', E_USER_DEPRECATED);
+    }
     return isset(self::$instance->storage[$name]) ? self::$instance->storage[$name] : $default;
   }