If environment does not have its own directory, remove it from the lookup

This commit is contained in:
Matias Griese
2015-11-30 18:56:34 +02:00
committed by Andy Miller
parent af5c52c52f
commit 2007975428

View File

@@ -232,6 +232,12 @@ class Setup extends Data
);
}
if (!$locator->findResource('environment://', true)) {
// If environment does not have its own directory, remove it from the lookup.
$this->set('streams.schemes.environment.prefixes', ['' => []]);
$this->initializeLocator($locator);
}
// Create security.yaml if it doesn't exist.
$filename = $locator->findResource('config://security.yaml', true, true);
$file = YamlFile::instance($filename);