1 | <?php namespace Anomaly\Streams\Platform\Routing; |
||
19 | class UrlGenerator extends \Illuminate\Routing\UrlGenerator |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * The parser engine. |
||
24 | * |
||
25 | * @var Engine |
||
26 | */ |
||
27 | protected $parser; |
||
28 | |||
29 | /** |
||
30 | * Create a new UrlGenerator instance. |
||
31 | * |
||
32 | * @param RouteCollection $routes |
||
33 | * @param Request $request |
||
34 | */ |
||
35 | public function __construct(RouteCollection $routes, Request $request) |
||
45 | |||
46 | /** |
||
47 | * Generate an absolute URL to the given asset. |
||
48 | * |
||
49 | * @param $path |
||
50 | * @param null $locale |
||
51 | * @param mixed $extra |
||
52 | * @param bool|null $secure |
||
53 | * @return string |
||
54 | */ |
||
55 | public function locale($path, $locale = null, $extra = [], $secure = null) |
||
63 | |||
64 | /** |
||
65 | * Generate an absolute URL to the given asset. |
||
66 | * |
||
67 | * @param string $asset |
||
68 | * @param mixed $extra |
||
69 | * @param bool|null $secure |
||
70 | * @return string |
||
71 | */ |
||
72 | public function asset($asset, $extra = [], $secure = null) |
||
105 | |||
106 | /** |
||
107 | * Make a route path. |
||
108 | * |
||
109 | * @param $name |
||
110 | * @param $entry |
||
111 | * @param array $parameters |
||
112 | * @return mixed|null|string |
||
113 | */ |
||
114 | public function make($name, $entry, array $parameters = []) |
||
137 | |||
138 | /** |
||
139 | * Get the URL to a named route. |
||
140 | * |
||
141 | * @param string $name |
||
142 | * @param mixed $parameters |
||
143 | * @param bool $absolute |
||
144 | * @return string |
||
145 | * |
||
146 | * @throws \InvalidArgumentException |
||
147 | */ |
||
148 | public function route($name, $parameters = [], $absolute = true) |
||
158 | } |
||
159 |