mirror of
https://github.com/getgrav/grav.git
synced 2026-07-19 21:11:56 +02:00
If environment does not have its own directory, remove it from the lookup
This commit is contained in:
committed by
Andy Miller
parent
af5c52c52f
commit
2007975428
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user