| @@ 79-86 (lines=8) @@ | ||
| 76 | return $responses[0]; |
|
| 77 | } |
|
| 78 | ||
| 79 | public function getOriginUri(UriInterface $uri) |
|
| 80 | { |
|
| 81 | if (array_key_exists((string) $uri, $this->redirects)) { |
|
| 82 | return $this->urls[$this->redirects[(string) $uri]]['url']; |
|
| 83 | } |
|
| 84 | ||
| 85 | return $uri; |
|
| 86 | } |
|
| 87 | ||
| 88 | public function getComingFrom(UriInterface $uri) |
|
| 89 | { |
|
| @@ 93-100 (lines=8) @@ | ||
| 90 | return $uri; |
|
| 91 | } |
|
| 92 | ||
| 93 | public function getSystem(UriInterface $uri) |
|
| 94 | { |
|
| 95 | if (array_key_exists((string) $uri, $this->redirects)) { |
|
| 96 | return $this->urls[$this->redirects[(string) $uri]]['system']; |
|
| 97 | } |
|
| 98 | ||
| 99 | return $this->urls[(string) $uri]['system']; |
|
| 100 | } |
|
| 101 | ||
| 102 | public function getSystems() |
|
| 103 | { |
|