ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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\HTTP\Services
;
24
use
ILIAS\Refinery\Factory
;
25
29
class
BundledRequestBuilder
implements
RequestBuilder
30
{
31
private
LegacyRequestBuilder
$legacy
;
32
private
StaticURLRequestBuilder
$static
;
33
34
public
function
__construct
()
35
{
36
$this->
legacy
=
new
LegacyRequestBuilder
();
37
$this->
static
=
new
StaticURLRequestBuilder
();
38
}
39
40
public
function
buildRequest
(
Services
$http
,
Factory
$refinery
, array $handlers): ?
Request
41
{
42
if
(($request = $this->
legacy
->buildRequest(
43
$http,
44
$refinery,
45
$handlers
46
)) instanceof
Request
) {
47
// we have now the situation that a new static URL is requested, but the handler is not yet registered or implemented
48
// we built a legacy request using the LegacyRequestBuilder for this to let the old system handle it.
49
return
$request;
50
}
51
52
return
$this->
static
->buildRequest($http, $refinery, $handlers);
53
}
54
55
}
ILIAS\UI\examples\Layout\Page\Standard\$refinery
$refinery
Definition:
ui.php:137
ILIAS\StaticURL\Request\BundledRequestBuilder\$static
StaticURLRequestBuilder $static
Definition:
BundledRequestBuilder.php:32
ILIAS\StaticURL\Request\BundledRequestBuilder
Definition:
BundledRequestBuilder.php:29
$http
$http
Definition:
deliver.php:30
ILIAS\StaticURL\Request\BundledRequestBuilder\$legacy
LegacyRequestBuilder $legacy
Definition:
BundledRequestBuilder.php:31
Services
ILIAS\StaticURL\Request\BundledRequestBuilder\buildRequest
buildRequest(Services $http, Factory $refinery, array $handlers)
Definition:
BundledRequestBuilder.php:40
ServerRequestInterface
ILIAS\StaticURL\Request\LegacyRequestBuilder
Definition:
LegacyRequestBuilder.php:32
Factory
ILIAS\Refinery\Factory
Definition:
Factory.php:25
ILIAS\StaticURL\Request\BundledRequestBuilder\__construct
__construct()
Definition:
BundledRequestBuilder.php:34
ILIAS\UI\examples\MainControls\Slate\Legacy\legacy
legacy()
expected output: > ILIAS shows the rendered Component.
Definition:
legacy.php:29
ILIAS\StaticURL\Request
Definition:
BundledRequestBuilder.php:21
ILIAS\StaticURL\Request\RequestBuilder
Definition:
RequestBuilder.php:29
ILIAS\StaticURL\Request\StaticURLRequestBuilder
Definition:
StaticURLRequestBuilder.php:30
components
ILIAS
StaticURL
src
Request
BundledRequestBuilder.php
Generated on Sun Aug 31 2025 23:03:46 for ILIAS by
1.8.13 (using
Doxyfile
)