From 2f12e28020a6311a3ed7472ea02054691b361626 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 5 Jun 2024 10:34:54 +0200 Subject: [PATCH] use cached container even with debug mode != 0 --- d3DicHandler.php | 2 +- tests/unit/d3DicHandlerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/d3DicHandler.php b/d3DicHandler.php index e961abc..37c2706 100644 --- a/d3DicHandler.php +++ b/d3DicHandler.php @@ -165,7 +165,7 @@ class d3DicHandler implements d3DicHandlerInterface $config = $this->d3GetConfig(); return $config->isProductiveMode() - && !$config->getConfigParam('iDebug') +// && !$config->getConfigParam('iDebug') && $this->cacheFileExists(); } diff --git a/tests/unit/d3DicHandlerTest.php b/tests/unit/d3DicHandlerTest.php index 04819fa..bad4a42 100644 --- a/tests/unit/d3DicHandlerTest.php +++ b/tests/unit/d3DicHandlerTest.php @@ -421,7 +421,7 @@ class d3DicHandlerTest extends TestCase public function canUseCachedContainerDataProvider(): Generator { yield "not productive" => [false, 0, true, false]; - yield 'is debug' => [true, 1, true, false]; + yield 'is debug' => [true, 1, true, true]; yield 'no cache file' => [true, 0, false, false]; yield 'can use cached' => [true, 0, true, true]; }