From f195a8a3251537991e5d3985b64bc4f14bb99ec9 Mon Sep 17 00:00:00 2001 From: lguigo Date: Fri, 14 Aug 2020 17:02:41 +0200 Subject: [PATCH] Update DefaultConfiguration.php because sf 3.3 app has dir var/logs and not var/log --- 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 1abe5ac..c50d205 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) { $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) { $this->_symfonyEnvironmentEnvVarName = 'APP_ENV'; $this->setDirs('bin', 'config', 'var/cache', 'var/log', 'src', 'templates', 'public'); $this->controllersToRemove([]);