ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\StaticURL\Request\BundledRequestBuilder Class Reference
+ Inheritance diagram for ILIAS\StaticURL\Request\BundledRequestBuilder:
+ Collaboration diagram for ILIAS\StaticURL\Request\BundledRequestBuilder:

Public Member Functions

 __construct ()
 
 buildRequest (Services $http, Factory $refinery, array $handlers)
 
 buildRequest (Services $http, Factory $refinery, array $handlers)
 

Private Attributes

LegacyRequestBuilder $legacy
 
StaticURLRequestBuilder $static
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\StaticURL\Request\BundledRequestBuilder::__construct ( )

Member Function Documentation

◆ buildRequest()

ILIAS\StaticURL\Request\BundledRequestBuilder::buildRequest ( Services  $http,
Factory  $refinery,
array  $handlers 
)

Implements ILIAS\StaticURL\Request\RequestBuilder.

Definition at line 40 of file BundledRequestBuilder.php.

40 : ?Request
41 {
42 if (($request = $this->legacy->buildRequest(
43 $http,
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 }

References ILIAS\UI\examples\Layout\Page\Standard\$refinery, and ILIAS\UI\examples\MainControls\Slate\Legacy\legacy().

+ Here is the call graph for this function:

Field Documentation

◆ $legacy

LegacyRequestBuilder ILIAS\StaticURL\Request\BundledRequestBuilder::$legacy
private

Definition at line 31 of file BundledRequestBuilder.php.

◆ $static

StaticURLRequestBuilder ILIAS\StaticURL\Request\BundledRequestBuilder::$static
private

Definition at line 32 of file BundledRequestBuilder.php.


The documentation for this class was generated from the following file: