-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathHttpKernelResult.php
45 lines (38 loc) · 1.08 KB
/
HttpKernelResult.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php declare(strict_types=1);
namespace Shopware\Core;
use Shopware\Core\Framework\Feature;
use Shopware\Core\Framework\Log\Package;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
#[Package('framework')]
/**
* @deprecated tag:v6.7.0 - Will be removed in 6.7.0. as it is unused
*/
class HttpKernelResult
{
public function __construct(
protected Request $request,
protected Response $response
) {
Feature::triggerDeprecationOrThrow(
'v6.7.0.0',
Feature::deprecatedClassMessage(self::class, 'v6.7.0.0'),
);
}
public function getRequest(): Request
{
Feature::triggerDeprecationOrThrow(
'v6.7.0.0',
Feature::deprecatedClassMessage(self::class, 'v6.7.0.0'),
);
return $this->request;
}
public function getResponse(): Response
{
Feature::triggerDeprecationOrThrow(
'v6.7.0.0',
Feature::deprecatedClassMessage(self::class, 'v6.7.0.0'),
);
return $this->response;
}
}