From 52000dd49e5cd3409ec315b0578169cadb0fe29b Mon Sep 17 00:00:00 2001 From: diosmosis Date: Thu, 17 Jul 2014 22:47:48 -0700 Subject: Refactor testing environment code to remove Log.php tests hack. --- core/Log.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'core/Log.php') diff --git a/core/Log.php b/core/Log.php index a28032be9b..3436497884 100644 --- a/core/Log.php +++ b/core/Log.php @@ -167,14 +167,6 @@ class Log extends Singleton */ protected function __construct() { - /** - * access a property that is not overriden by TestingEnvironment before accessing log as the - * log section is used in TestingEnvironment. Otherwise access to magic __get('log') fails in - * TestingEnvironment as it tries to acccess it already here with __get('log'). - * $config->log ==> __get('log') ==> Config.createConfigInstance ==> nested __get('log') ==> returns null - */ - $initConfigToPreventErrorWhenAccessingLog = Config::getInstance()->mail; - $logConfig = Config::getInstance()->log; $this->setCurrentLogLevelFromConfig($logConfig); $this->setLogWritersFromConfig($logConfig); -- cgit v1.2.3