From ffd92755001df64781610862b1e19b6665f50634 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 3 Feb 2022 20:01:56 +0100 Subject: [PATCH] Correct way to use interface constant --- classes/Factory/LoggerFactory.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/Factory/LoggerFactory.php b/classes/Factory/LoggerFactory.php index da52c1d..b80774d 100644 --- a/classes/Factory/LoggerFactory.php +++ b/classes/Factory/LoggerFactory.php @@ -7,6 +7,7 @@ use Consolidation\Log\LoggerManager; use Consolidation\Log\LogOutputStyler; use Slim\Container; use Symfony\Component\Console\Output\ConsoleOutput; +use Symfony\Component\Console\Output\OutputInterface; /** * Class LoggerFactory @@ -23,9 +24,9 @@ class LoggerFactory { $config = $container->get('config'); if ($config->debug) { - $verbosity = ConsoleOutput::VERBOSITY_DEBUG; + $verbosity = OutputInterface::VERBOSITY_DEBUG; } else { - $verbosity = ConsoleOutput::VERBOSITY_NORMAL; + $verbosity = OutputInterface::VERBOSITY_NORMAL; } $loggerManager = new LoggerManager();