mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix behat issues
This commit is contained in:
parent
5b59a912b6
commit
f9b2ba4755
@ -2,8 +2,8 @@
|
||||
|
||||
// CLI specific bootstrapping
|
||||
use SilverStripe\Control\CLIRequestBuilder;
|
||||
use SilverStripe\Control\HTTPApplication;
|
||||
use SilverStripe\Core\CoreKernel;
|
||||
use SilverStripe\Core\HTTPApplication;
|
||||
|
||||
require __DIR__ . '/src/includes/autoload.php';
|
||||
|
||||
|
@ -186,6 +186,16 @@ class CoreKernel implements Kernel
|
||||
$this->bootManifests($flush);
|
||||
$this->bootErrorHandling();
|
||||
$this->bootDatabase();
|
||||
$this->bootConfigs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Include all _config.php files
|
||||
*/
|
||||
protected function bootConfigs()
|
||||
{
|
||||
// After loading all other app manifests, include _config.php files
|
||||
$this->getModuleLoader()->getManifest()->activateConfig();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -436,9 +446,6 @@ class CoreKernel implements Kernel
|
||||
}
|
||||
}
|
||||
|
||||
// After loading config, boot _config.php files
|
||||
$this->getModuleLoader()->getManifest()->activateConfig();
|
||||
|
||||
// Find default templates
|
||||
$defaultSet = $this->getThemeResourceLoader()->getSet('$default');
|
||||
if ($defaultSet instanceof ThemeManifest) {
|
||||
|
@ -316,7 +316,7 @@ class DB
|
||||
* @param string $name
|
||||
* @return mixed
|
||||
*/
|
||||
public static function getConfig($name)
|
||||
public static function getConfig($name = 'default')
|
||||
{
|
||||
if (isset(static::$configs[$name])) {
|
||||
return static::$configs[$name];
|
||||
|
@ -2,4 +2,3 @@
|
||||
|
||||
require __DIR__ . '/../bootstrap/init.php';
|
||||
require __DIR__ . '/../bootstrap/environment.php';
|
||||
require __DIR__ . '/../bootstrap/mysite.php';
|
||||
|
Loading…
Reference in New Issue
Block a user