@@ 118-124 (lines=7) @@ | ||
115 | string $path = null, |
|
116 | ContainerInterface $di = null |
|
117 | ) { |
|
118 | if ($this->mount) { |
|
119 | // Remove the mount path to get base for controller |
|
120 | $len = strlen($this->mount); |
|
121 | if (substr($path, 0, $len) == $this->mount) { |
|
122 | $path = ltrim(substr($path, $len), "/"); |
|
123 | } |
|
124 | } |
|
125 | ||
126 | try { |
|
127 | $handler = new RouteHandler(); |
|
@@ 169-174 (lines=6) @@ | ||
166 | public function getMatchedPath() |
|
167 | { |
|
168 | $path = $this->pathMatched; |
|
169 | if ($this->mount) { |
|
170 | $len = strlen($this->mount); |
|
171 | if (substr($path, 0, $len) == $this->mount) { |
|
172 | $path = ltrim(substr($path, $len), "/"); |
|
173 | } |
|
174 | } |
|
175 | ||
176 | return $path; |
|
177 | } |