From 579d42a2155d9581147a3bc1e672ac242509133d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 10 Mar 2019 22:19:12 -0400 Subject: [PATCH] Fix fatal error when using Logger::devLog - Error message is "Call to a member function log() on null in src/Core/Logger.php:304" --- src/Factory/DependencyFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Factory/DependencyFactory.php b/src/Factory/DependencyFactory.php index 52178bb77f..9d84e324ab 100644 --- a/src/Factory/DependencyFactory.php +++ b/src/Factory/DependencyFactory.php @@ -31,6 +31,7 @@ class DependencyFactory // needed to call PConfig::init() Factory\ConfigFactory::createPConfig($configCache); $logger = Factory\LoggerFactory::create($channel, $config); + Factory\LoggerFactory::createDev($channel, $config); return new App($basePath, $config, $logger, $profiler, $isBackend); } -- 2.39.5