Created
August 2, 2017 16:56
-
-
Save chriscalip/cf063743e5a19a58a2671c7ff5542488 to your computer and use it in GitHub Desktop.
Updated settings.php to include settings.local.php and settings.devforpantheon.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load services definition file. | |
*/ | |
$settings['container_yamls'][] = __DIR__ . '/services.yml'; | |
/** | |
* Include the Pantheon-specific settings file. | |
* | |
* n.b. The settings.pantheon.php file makes some changes | |
* that affect all envrionments that this site | |
* exists in. Always include this file, even in | |
* a local development environment, to insure that | |
* the site settings remain consistent. | |
*/ | |
include __DIR__ . "/settings.pantheon.php"; | |
/** | |
* If there is a capacitype for pantheon-specific settings file, then include it | |
*/ | |
$devforpantheon_settings = __DIR__ . "/settings.devforpantheon.php"; | |
if (file_exists($devforpantheon_settings)) { | |
include $devforpantheon_settings; | |
} | |
/** | |
* If there is a local settings file, then include it | |
*/ | |
$local_settings = __DIR__ . "/settings.local.php"; | |
if (file_exists($local_settings)) { | |
include $local_settings; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment