Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 7 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class Service extends AbstractService |
||
19 | { |
||
20 | /** |
||
21 | * @var ServerRequestFactoryInterface The PSR-17 server request factory instance. |
||
22 | */ |
||
23 | protected $serverRequestFactory; |
||
24 | |||
25 | /** |
||
26 | * Constructs the HTTP service. |
||
27 | * |
||
28 | * @param ServerRequestFactoryInterface $serverRequestFactory The server request factory. |
||
29 | * @inheritDoc |
||
30 | */ |
||
31 | public function __construct( |
||
32 | ContainerInterface $container, |
||
33 | ServerRequestFactoryInterface $serverRequestFactory |
||
34 | ) { |
||
35 | parent::__construct($container); |
||
36 | $this->serverRequestFactory = $serverRequestFactory; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Create a server request from the current environment. |
||
41 | * |
||
42 | * @return ServerRequestInterface The created server request. |
||
43 | */ |
||
44 | public function createServerRequest(): ServerRequestInterface |
||
50 | ); |
||
51 | } |
||
53 |