ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
BundledRequestBuilder.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
29 {
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 }
Class ChatMainBarProvider .
buildRequest(\ILIAS\HTTP\Services $http, Factory $refinery, array $handlers)
$http
Definition: raiseError.php:7
Refinery Factory $refinery