Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
RequestFactory.php
1<?php
3
5{
6 private RequestBuilderInterface $builder;
7
8 public function __construct(RequestBuilderInterface $builder)
9 {
10 $this->builder = $builder;
11 }
12
13 public function build(): Request
14 {
15 return $this->builder->setUrl()->setHeaders()->setProxy()->setBody()->build();
16 }
17}
__construct(RequestBuilderInterface $builder)