1 | <?php |
||
17 | trait UrlUtils |
||
18 | { |
||
19 | /** |
||
20 | * @return Request |
||
21 | */ |
||
22 | abstract public function getRequest(); |
||
23 | |||
24 | /** |
||
25 | * Gets the url for provided path |
||
26 | * |
||
27 | * @param string $path |
||
28 | * @return string |
||
29 | */ |
||
30 | 4 | public function getUrl($path) |
|
52 | |||
53 | /** |
||
54 | * Return Router path generator |
||
55 | * |
||
56 | * @return \Aura\Router\Generator |
||
57 | */ |
||
58 | 2 | protected function getRouterGenerator() |
|
64 | } |