| @@ 127-134 (lines=8) @@ | ||
| 124 | return $responses[0]; |
|
| 125 | } |
|
| 126 | ||
| 127 | public function getOriginUri(UriInterface $uri) |
|
| 128 | { |
|
| 129 | if (array_key_exists((string) $uri, $this->redirects)) { |
|
| 130 | return $this->urls[$this->redirects[(string) $uri]]['url']; |
|
| 131 | } |
|
| 132 | ||
| 133 | return $uri; |
|
| 134 | } |
|
| 135 | ||
| 136 | public function getComingFrom(UriInterface $uri) |
|
| 137 | { |
|
| @@ 141-148 (lines=8) @@ | ||
| 138 | return $uri; |
|
| 139 | } |
|
| 140 | ||
| 141 | public function getSystem(UriInterface $uri) |
|
| 142 | { |
|
| 143 | if (array_key_exists((string) $uri, $this->redirects)) { |
|
| 144 | return $this->urls[$this->redirects[(string) $uri]]['system']; |
|
| 145 | } |
|
| 146 | ||
| 147 | return $this->urls[(string) $uri]['system']; |
|
| 148 | } |
|
| 149 | ||
| 150 | public function getSystems() |
|
| 151 | { |
|