| @@ 139-146 (lines=8) @@ | ||
| 136 | return $responses[0]; |
|
| 137 | } |
|
| 138 | ||
| 139 | public function getOriginUri(UriInterface $uri) |
|
| 140 | { |
|
| 141 | if (array_key_exists((string)$uri, $this->redirects)) { |
|
| 142 | return $this->urls[$this->redirects[(string)$uri]]['url']; |
|
| 143 | } |
|
| 144 | ||
| 145 | return $uri; |
|
| 146 | } |
|
| 147 | ||
| 148 | public function getComingFrom(UriInterface $uri) |
|
| 149 | { |
|
| @@ 153-160 (lines=8) @@ | ||
| 150 | return $uri; |
|
| 151 | } |
|
| 152 | ||
| 153 | public function getSystem(UriInterface $uri) |
|
| 154 | { |
|
| 155 | if (array_key_exists((string)$uri, $this->redirects)) { |
|
| 156 | return $this->urls[$this->redirects[(string)$uri]]['system']; |
|
| 157 | } |
|
| 158 | ||
| 159 | return $this->urls[(string)$uri]['system']; |
|
| 160 | } |
|
| 161 | ||
| 162 | public function getSystems() |
|
| 163 | { |
|