Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
34
vendor/drupal/console/templates/files/settings.php.twig
vendored
Normal file
34
vendor/drupal/console/templates/files/settings.php.twig
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
{% if load_from_env is defined %}
|
||||
{{ yaml_comment('commands.dotenv.init.messages.load-from-env') }}
|
||||
{% endif %}
|
||||
|
||||
# Load environment
|
||||
$env = getenv('ENVIRONMENT');
|
||||
|
||||
{% if load_settings is defined %}
|
||||
{{ yaml_comment('commands.dotenv.init.messages.load-settings') }}
|
||||
{% endif %}
|
||||
$base_path = $app_root . '/' . $site_path;
|
||||
$servicesFile = $base_path . '/services.'.$env.'.yml';
|
||||
$settingsFile = $base_path . '/settings.'.$env.'.php';
|
||||
|
||||
// Load services definition file.
|
||||
if (file_exists($servicesFile)) {
|
||||
$settings['container_yamls'][] = $servicesFile;
|
||||
}
|
||||
|
||||
// Load settings file.
|
||||
if (file_exists($settingsFile)) {
|
||||
include $settingsFile;
|
||||
}
|
||||
|
||||
$databases['default']['default'] = array (
|
||||
'database' => getenv('DATABASE_NAME'),
|
||||
'username' => getenv('DATABASE_USER'),
|
||||
'password' => getenv('DATABASE_PASSWORD'),
|
||||
'prefix' => '',
|
||||
'host' => getenv('DATABASE_HOST'),
|
||||
'port' => getenv('DATABASE_PORT'),
|
||||
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
|
||||
'driver' => 'mysql',
|
||||
);
|
Reference in a new issue