ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
CascadingHttpPathProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\HTTP\Path;
22
24
31{
35 private array $providers;
36
38 {
39 $this->providers = $providers;
40 }
41
42 public function getHttpPath(): ?URI
43 {
44 foreach ($this->providers as $provider) {
45 $http_path = $provider->getHttpPath();
46 if ($http_path !== null) {
47 return $http_path;
48 }
49 }
50 return null;
51 }
52}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
Asks the given providers in order and returns the first http path one of them knows.
Tells under which URL this ILIAS installation is reached, e.g.