1 | <?php |
||
3 | class ListRouteCommand extends SilverstripeCommand |
||
|
|||
4 | { |
||
5 | /** |
||
6 | * @var string |
||
7 | */ |
||
8 | protected $signature = 'list:route'; |
||
9 | |||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $description = 'List all routes to Controllers'; |
||
14 | |||
15 | public function fire() |
||
21 | |||
22 | public function routes() |
||
41 | |||
42 | /** |
||
43 | * @param string $controller |
||
44 | * @return array |
||
45 | */ |
||
46 | protected function getActionsForController($controller) |
||
56 | |||
57 | /** |
||
58 | * @param string $controller |
||
59 | * @return array |
||
60 | */ |
||
61 | protected function getUrlHandlersForController($controller) |
||
71 | |||
72 | /** |
||
73 | * @param string $controller |
||
74 | * @param string $config |
||
75 | * @return array |
||
76 | */ |
||
77 | protected function getValuesOrKeysFromConfig($controller, $config = 'allowed_actions') |
||
87 | } |
||
88 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.