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