Skip to content

Commit b891938

Browse files
authored
Add NS aliases
1 parent b3d0b45 commit b891938

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

App/Application.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
use Exception;
1111
use InvalidArgumentException;
1212
use Magento\Framework\App;
13+
use Magento\Framework\App\Bootstrap;
1314
use Magento\Framework\App\ExceptionHandlerInterface;
1415
use Magento\Framework\App\FrontControllerInterface as FrontController;
1516
use Magento\Framework\App\HttpRequestInterface;
16-
use Magento\Framework\App\Response\Http;
17+
use Magento\Framework\App\Response\Http as HttpResponse;
1718
use Magento\Framework\App\Response\HttpInterface;
19+
use Magento\Framework\App\Request\Http as HttpRequest;
1820
use Magento\Framework\AppInterface;
1921
use Magento\Framework\Controller\ResultInterface;
2022
use Magento\Framework\Event\Manager;
@@ -28,8 +30,8 @@ public function __construct(
2830
private Manager $eventManager,
2931
private Registry $registry,
3032
private ExceptionHandlerInterface $exceptionHandler,
31-
private Http $response,
32-
private App\Request\Http $request,
33+
private HttpResponse $response,
34+
private HttpRequest $request,
3335
) {}
3436

3537
/**
@@ -57,7 +59,7 @@ public function launch(): HttpInterface
5759
/**
5860
* @inheritdoc
5961
*/
60-
public function catchException(App\Bootstrap $bootstrap, Exception $exception): bool
62+
public function catchException(Bootstrap $bootstrap, Exception $exception): bool
6163
{
6264
return $this->exceptionHandler->handle($bootstrap, $exception, $this->response, $this->request);
6365
}

0 commit comments

Comments
 (0)