1 | <?php |
||
19 | class ControllerDispatchInflector implements ControllerDispatchInflectorInterface |
||
20 | { |
||
21 | /** |
||
22 | * Returns the controller class name from provided route |
||
23 | * |
||
24 | * @param Route $route |
||
25 | * |
||
26 | * @return ControllerDispatch |
||
27 | */ |
||
28 | public function inflect(Route $route) |
||
33 | |||
34 | /** |
||
35 | * Get arguments form route attributes |
||
36 | * |
||
37 | * @param Route $route |
||
38 | * @return array |
||
39 | */ |
||
40 | private function extractAttributes(Route $route) |
||
55 | |||
56 | /** |
||
57 | * Create a controller dispatch with provided arguments |
||
58 | * |
||
59 | * @param array $arguments |
||
60 | * |
||
61 | * @return ControllerDispatch|Object |
||
62 | */ |
||
63 | private function createDispatch(array $arguments) |
||
77 | |||
78 | /** |
||
79 | * Filters the controller class name |
||
80 | * |
||
81 | * @param string $name |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | private function filterName($name) |
||
95 | } |
||
96 |