From 87e335eccc9c11867fad04aadfc37f93855a251a Mon Sep 17 00:00:00 2001 From: Marc Andrew Landles Date: Thu, 29 Nov 2018 11:23:27 -0500 Subject: [PATCH] Symfony environment variable adjusted for v3.4 --- src/Configuration/DefaultConfiguration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Configuration/DefaultConfiguration.php b/src/Configuration/DefaultConfiguration.php index da1bf7d..742c34a 100644 --- a/src/Configuration/DefaultConfiguration.php +++ b/src/Configuration/DefaultConfiguration.php @@ -374,14 +374,14 @@ private function setDefaultConfiguration(int $symfonyMajorVersion, $symfonyMinor $this->sharedDirs = ['app/logs']; $this->writableDirs = ['app/cache/', 'app/logs/']; $this->dumpAsseticAssets = true; - } elseif (3 === $symfonyMajorVersion && 4 < $symfonyMinorVersion) { + } elseif (3 === $symfonyMajorVersion && 4 <= $symfonyMinorVersion) { $this->_symfonyEnvironmentEnvVarName = 'SYMFONY_ENV'; $this->setDirs('bin', 'app/config', 'var/cache', 'var/logs', 'src', 'app/Resources/views', 'web'); $this->controllersToRemove(['web/app_*.php']); $this->sharedFiles = ['app/config/parameters.yml']; $this->sharedDirs = ['var/logs']; $this->writableDirs = ['var/cache/', 'var/logs/']; - } elseif (4 === $symfonyMajorVersion || (3 === $symfonyMajorVersion && 4 >= $symfonyMinorVersion)) { + } elseif (4 === $symfonyMajorVersion || (3 === $symfonyMajorVersion && 4 > $symfonyMinorVersion)) { $this->_symfonyEnvironmentEnvVarName = 'APP_ENV'; $this->setDirs('bin', 'config', 'var/cache', 'var/log', 'src', 'templates', 'public'); $this->controllersToRemove([]);