From d9af35766325a96726af97a12213cb31fa9c7d0f Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 10 Jan 2025 21:58:21 +0000 Subject: [PATCH] Create LegacyLoggerFactory --- .../Logger/Factory/LegacyLoggerFactory.php | 33 +++++++++++++++++++ src/Core/Logger/Factory/LoggerFactory.php | 28 ++++++++++++++++ .../Factory/LegacyLoggerFactoryTest.php | 29 ++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 src/Core/Logger/Factory/LegacyLoggerFactory.php create mode 100644 src/Core/Logger/Factory/LoggerFactory.php create mode 100644 tests/Unit/Core/Logger/Factory/LegacyLoggerFactoryTest.php diff --git a/src/Core/Logger/Factory/LegacyLoggerFactory.php b/src/Core/Logger/Factory/LegacyLoggerFactory.php new file mode 100644 index 0000000000..42103127e3 --- /dev/null +++ b/src/Core/Logger/Factory/LegacyLoggerFactory.php @@ -0,0 +1,33 @@ +assertInstanceOf( + LoggerInterface::class, + $factory->createLogger(LogLevel::DEBUG, LogChannel::DEFAULT) + ); + } +}