Get values from $settings variable

When you set or override some variables in settings.php with $settings var and want to get it in your code, call it like this.

 

use Drupal\Core\Site\Settings;

$mySetting = Settings::get('some_setting', NULL);