use cached container even with debug mode != 0
This commit is contained in:
parent
31c3ac4e50
commit
2f12e28020
@ -165,7 +165,7 @@ class d3DicHandler implements d3DicHandlerInterface
|
|||||||
$config = $this->d3GetConfig();
|
$config = $this->d3GetConfig();
|
||||||
|
|
||||||
return $config->isProductiveMode()
|
return $config->isProductiveMode()
|
||||||
&& !$config->getConfigParam('iDebug')
|
// && !$config->getConfigParam('iDebug')
|
||||||
&& $this->cacheFileExists();
|
&& $this->cacheFileExists();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -421,7 +421,7 @@ class d3DicHandlerTest extends TestCase
|
|||||||
public function canUseCachedContainerDataProvider(): Generator
|
public function canUseCachedContainerDataProvider(): Generator
|
||||||
{
|
{
|
||||||
yield "not productive" => [false, 0, true, false];
|
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 'no cache file' => [true, 0, false, false];
|
||||||
yield 'can use cached' => [true, 0, true, true];
|
yield 'can use cached' => [true, 0, true, true];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user