From 1c4d62e867ba20a399d553dcbafb0c4ff5b5a588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Hoffmann?= Date: Sat, 1 Jun 2024 11:27:28 +0200 Subject: [PATCH] BUGFIX: add recursive directory creation in setup db command --- Classes/Command/SetupCommandController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Command/SetupCommandController.php b/Classes/Command/SetupCommandController.php index 89b3535..32ecb83 100644 --- a/Classes/Command/SetupCommandController.php +++ b/Classes/Command/SetupCommandController.php @@ -20,11 +20,11 @@ use Neos\Setup\Domain\CliEnvironment; use Neos\Setup\Domain\HealthcheckEnvironment; use Neos\Setup\Infrastructure\HealthChecker; -use Neos\Setup\RequestHandler\SetupCliRequestHandler; use Neos\Utility\Arrays; use Neos\Setup\Exception as SetupException; use Neos\Setup\Infrastructure\Database\DatabaseConnectionService; use Symfony\Component\Yaml\Yaml; +use Neos\Utility\Files; class SetupCommandController extends CommandController { @@ -185,6 +185,7 @@ private function writeSettings(string $filename, string $path, $settings): strin $previousSettings = []; } $newSettings = Arrays::setValueByPath($previousSettings, $path, $settings); + Files::createDirectoryRecursively(dirname($filename)); file_put_contents($filename, YAML::dump($newSettings, 10, 2)); return YAML::dump(Arrays::setValueByPath([], $path, $settings), 10, 2); }