ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
BundledRequestBuilder.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\StaticURL\Request
;
22
23
use
ILIAS\Refinery\Factory
;
24
28
class
BundledRequestBuilder
implements
RequestBuilder
29
{
30
private
LegacyRequestBuilder
$legacy
;
31
private
StaticURLRequestBuilder
$static
;
32
33
public
function
__construct
()
34
{
35
$this->
legacy
=
new
LegacyRequestBuilder
();
36
$this->
static
=
new
StaticURLRequestBuilder
();
37
}
38
39
public
function
buildRequest
(\
ILIAS
\
HTTP
\
Services
$http
,
Factory
$refinery
, array $handlers): ?
Request
40
{
41
if
(($request = $this->
legacy
->buildRequest(
42
$http,
43
$refinery,
44
$handlers
45
)) instanceof \
ILIAS
\StaticURL\
Request
\
Request
) {
46
// we have now the situation that a new static URL is requested, but the handler is not yet registered or implemented
47
// we built a legacy request using the LegacyRequestBuilder for this to let the old system handle it.
48
return
$request;
49
}
50
51
return
$this->
static
->buildRequest($http, $refinery, $handlers);
52
}
53
54
}
ILIAS\StaticURL\Request\BundledRequestBuilder\$static
StaticURLRequestBuilder $static
Definition:
BundledRequestBuilder.php:31
ILIAS
Class ChatMainBarProvider .
ILIAS\StaticURL\Request\BundledRequestBuilder\buildRequest
buildRequest(\ILIAS\HTTP\Services $http, Factory $refinery, array $handlers)
Definition:
BundledRequestBuilder.php:39
ILIAS\StaticURL\Request\BundledRequestBuilder
Definition:
BundledRequestBuilder.php:28
ILIAS\StaticURL\Request\BundledRequestBuilder\$legacy
LegacyRequestBuilder $legacy
Definition:
BundledRequestBuilder.php:30
Services
HTTP
ServerRequestInterface
ILIAS\StaticURL\Request\LegacyRequestBuilder
Definition:
LegacyRequestBuilder.php:31
Factory
ILIAS\StaticURL\Request\BundledRequestBuilder\__construct
__construct()
Definition:
BundledRequestBuilder.php:33
ILIAS\UI\examples\MainControls\Slate\Legacy\legacy
legacy()
Definition:
legacy.php:7
$http
$http
Definition:
raiseError.php:7
ILIAS\StaticURL\Request
Definition:
BundledRequestBuilder.php:21
ILIAS\StaticURL\Request\RequestBuilder
Definition:
RequestBuilder.php:28
ILIAS\StaticURL\Request\StaticURLRequestBuilder
Definition:
StaticURLRequestBuilder.php:30
ILIAS\Repository\$refinery
Refinery Factory $refinery
Definition:
trait.BaseGUIRequest.php:36
src
StaticURL
Request
BundledRequestBuilder.php
Generated on Wed Sep 10 2025 14:12:08 for ILIAS by
1.8.13 (using
Doxyfile
)