From 47d784377759b744bf66d7a0c3f7c68b417bbba2 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Sun, 27 Dec 2020 16:06:29 +0100 Subject: [PATCH] docker/l3d#58 Move project settings out of composer.json --- src/Handler.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index b82ed4a..23d11aa 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -139,7 +139,7 @@ class Handler extends BaseHandler { * {@inheritdoc} */ protected function postInit(): void { - $this->env->put('PHP_VERSION', $this->config->readValue('php/version'), TRUE); + $this->env->put('PHP_VERSION', $this->config->readValue(['php', 'version']), TRUE); } /** @@ -149,13 +149,14 @@ class Handler extends BaseHandler { * Whether to overwrite existing config files. */ public function configureProject($overwrite = FALSE): void { - $this->init(); // We only do the fancy stuff for developers. if (!$this->isDevMode()) { return; } + $this->init(); + $fs = new Filesystem(); $installationManager = $this->composer->getInstallationManager(); @@ -312,7 +313,7 @@ class Handler extends BaseHandler { ], 'vhost.conf' => [ 'dest' => $projectRoot . '/apache', - 'condition' => $this->config->readValue('webserver/overwriteconfig'), + 'condition' => $this->config->readValue(['webserver', 'overwriteconfig']), ], ]; } -- GitLab