Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
requestevent.php
1
<?php
2
10
namespace
Bitrix\Main\Web\Http
;
11
12
use
Bitrix\Main
;
13
use
Bitrix\Main\Web\HttpClient
;
14
use Psr\Http\Message\RequestInterface;
15
19
class
RequestEvent
extends
Main\Event
20
{
21
protected
HttpClient
$client
;
22
protected
RequestInterface
$request
;
23
24
public
function
__construct
(
HttpClient
$client
, RequestInterface
$request
,
string
$type
)
25
{
26
parent::__construct(
'main'
,
$type
);
27
28
$this->client =
$client
;
29
$this->request =
$request
;
30
}
31
32
public
function
getClient
():
HttpClient
33
{
34
return
$this->client
;
35
}
36
37
public
function
getRequest
(): RequestInterface
38
{
39
return
$this->request
;
40
}
41
}
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\Event\$type
$type
Definition
event.php:7
Bitrix\Main\Web\Http\RequestEvent
Definition
requestevent.php:20
Bitrix\Main\Web\Http\RequestEvent\getClient
getClient()
Definition
requestevent.php:32
Bitrix\Main\Web\Http\RequestEvent\$request
RequestInterface $request
Definition
requestevent.php:22
Bitrix\Main\Web\Http\RequestEvent\__construct
__construct(HttpClient $client, RequestInterface $request, string $type)
Definition
requestevent.php:24
Bitrix\Main\Web\Http\RequestEvent\getRequest
getRequest()
Definition
requestevent.php:37
Bitrix\Main\Web\Http\RequestEvent\$client
HttpClient $client
Definition
requestevent.php:21
Bitrix\Main\Web\HttpClient
Definition
httpclient.php:24
Bitrix\Main\Web\Http
Definition
clientexception.php:3
Bitrix\Main
modules
main
lib
web
http
requestevent.php
Создано системой
1.10.0