Skip to content

Commit 3e88e17

Browse files
author
Oleksandr Dubovyk
committed
MC-38770: Exception during initialization is cacheable
- moved dependency to use
1 parent fd8749f commit 3e88e17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/App/Bootstrap.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\Framework\Autoload\Populator;
1414
use Magento\Framework\Config\File\ConfigFilePool;
1515
use Magento\Framework\Filesystem\DriverPool;
16+
use Magento\Framework\HTTP\PhpEnvironment\Response;
1617
use Psr\Log\LoggerInterface;
1718

1819
/**
@@ -428,8 +429,8 @@ public function isDeveloperMode()
428429
*/
429430
protected function terminate(\Throwable $e)
430431
{
431-
/** @var \Magento\Framework\HTTP\PhpEnvironment\Response $response */
432-
$response = $this->objectManager->get(\Magento\Framework\HTTP\PhpEnvironment\Response::class);
432+
/** @var Response $response */
433+
$response = $this->objectManager->get(Response::class);
433434
$response->clearHeaders();
434435
$response->setHttpResponseCode(500);
435436
$response->setHeader('Content-Type', 'text/plain');

0 commit comments

Comments
 (0)