@@ 118-129 (lines=12) @@ | ||
115 | * @param array $params |
|
116 | * @return string |
|
117 | */ |
|
118 | public function assembleFull($name, $params = []) |
|
119 | { |
|
120 | $route = $this->getDefaultRoute($name, $params); |
|
121 | if ($route) { |
|
122 | $route->setRequest($this->getRequest()); |
|
123 | return $route->assembleFull($params); |
|
124 | } |
|
125 | ||
126 | trigger_error("Route \"$name\" not connected", E_USER_ERROR); |
|
127 | ||
128 | return null; |
|
129 | } |
|
130 | ||
131 | /** |
|
132 | * @param $name |
|
@@ 176-187 (lines=12) @@ | ||
173 | * @param array $params |
|
174 | * @return mixed|string |
|
175 | */ |
|
176 | public function assemble($name, $params = []) |
|
177 | { |
|
178 | $route = $this->getDefaultRoute($name, $params); |
|
179 | ||
180 | if ($route) { |
|
181 | $route->setRequest($this->getRequest()); |
|
182 | return $route->assemble($params); |
|
183 | } |
|
184 | ||
185 | trigger_error("Route \"$name\" not connected", E_USER_ERROR); |
|
186 | return null; |
|
187 | } |
|
188 | ||
189 | /** |
|
190 | * @return Route |