1 | <?php |
||
11 | class LocaleRouter |
||
12 | { |
||
13 | use ConvertToControllerAction; |
||
14 | use ConfigParams; |
||
15 | |||
16 | protected $router; |
||
17 | protected $prefixRoute; |
||
18 | protected $prefixUrl; |
||
19 | |||
20 | 46 | public function __construct(Router $router, PrefixRoute $prefixRoute, PrefixUrl $prefixUrl) |
|
26 | |||
27 | 12 | public function get($route, $action, array $options = []) |
|
31 | |||
32 | 2 | public function post($route, $action, array $options = []) |
|
36 | |||
37 | 2 | public function put($route, $action, array $options = []) |
|
41 | |||
42 | 2 | public function patch($route, $action, array $options = []) |
|
46 | |||
47 | 2 | public function delete($route, $action, array $options = []) |
|
51 | |||
52 | 2 | public function options($route, $action, array $options = []) |
|
56 | |||
57 | 22 | public function makeRoutes($method, $route, $action, array $options = []) |
|
63 | |||
64 | 22 | public function makeRoute($locale, $method, $route, $action, array $options = []) |
|
78 | } |
||
79 |