From b706b2a1dc9be0e7675ecf0ea27180a1467ec942 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Thu, 5 Sep 2019 08:13:09 +0200 Subject: [PATCH] Fixed the composer requirements and added the log module. --- composer.json | 2 +- config/application.config.php | 1 + config/autoload/global.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6980103..3abe0d3 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ {"name": "Cédric Bonhomme", "email": "cedric.bonhomme@cases.lu"} ], "require": { - "php": "^7.1", + "php": "^7.2", "ext-json": "*", "ext-pdo": "*", "monarc/core": "dev-feature/upgrade-to-zf3", diff --git a/config/application.config.php b/config/application.config.php index 8ec38ac..6ba26f6 100644 --- a/config/application.config.php +++ b/config/application.config.php @@ -22,6 +22,7 @@ if (!empty($appConfDir)) { return [ 'modules' => [ + 'Zend\Log', 'Monarc\Core', 'Monarc\FrontOffice', 'Zend\Cache', diff --git a/config/autoload/global.php b/config/autoload/global.php index b253801..d9384be 100644 --- a/config/autoload/global.php +++ b/config/autoload/global.php @@ -14,7 +14,7 @@ use Monarc\Core\Service\DoctrineCacheServiceFactory; use Monarc\Core\Service\DoctrineLoggerFactory; -$appconfdir = getenv('APP_CONF_DIR') ? getenv('APP_CONF_DIR') : ''; +$appconfdir = getenv('APP_CONF_DIR') ?? ''; $datapath = "data"; if( ! empty($appconfdir) ){