ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
WrapperFactory.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\HTTP\Wrapper
;
6
7
use
Psr\Http\Message\RequestInterface
;
8
9
/******************************************************************************
10
*
11
* This file is part of ILIAS, a powerful learning management system.
12
*
13
* ILIAS is licensed with the GPL-3.0, you should have received a copy
14
* of said license along with the source code.
15
*
16
* If this is not the case or you just want to try ILIAS, you'll find
17
* us at:
18
* https://www.ilias.de
19
* https://github.com/ILIAS-eLearning
20
*
21
*****************************************************************************/
26
class
WrapperFactory
27
{
28
private
RequestInterface
$request
;
29
33
public
function
__construct
(
RequestInterface
$request)
34
{
35
$this->request =
$request
;
36
}
37
38
public
function
query
():
ArrayBasedRequestWrapper
39
{
40
return
new
ArrayBasedRequestWrapper
($this->request->getQueryParams());
41
}
42
43
public
function
post
():
ArrayBasedRequestWrapper
44
{
45
return
new
ArrayBasedRequestWrapper
($this->request->getParsedBody());
46
}
47
48
public
function
cookie
():
ArrayBasedRequestWrapper
49
{
50
return
new
ArrayBasedRequestWrapper
($this->request->getCookieParams());
51
}
52
}
ILIAS\HTTP\Wrapper\WrapperFactory\$request
RequestInterface $request
Definition:
WrapperFactory.php:28
ILIAS\HTTP\Wrapper\WrapperFactory\post
post()
Definition:
WrapperFactory.php:43
ILIAS\HTTP\Wrapper\WrapperFactory\cookie
cookie()
Definition:
WrapperFactory.php:48
ILIAS\HTTP\Wrapper\WrapperFactory\query
query()
Definition:
WrapperFactory.php:38
ILIAS\HTTP\Wrapper\WrapperFactory
Class WrapperFactory.
Definition:
WrapperFactory.php:26
RequestInterface
ArrayBasedRequestWrapper
ILIAS\HTTP\Wrapper\WrapperFactory\__construct
__construct(RequestInterface $request)
WrapperFactory constructor.
Definition:
WrapperFactory.php:33
ILIAS\HTTP\Wrapper
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArrayBasedRequestWrapper.php:21
src
HTTP
Wrapper
WrapperFactory.php
Generated on Sun Aug 31 2025 22:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)