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() |
||
40 | |||
41 | /** |
||
42 | * @param string $controller |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | protected function getActionsForController($controller) |
||
58 | |||
59 | /** |
||
60 | * @param string $controller |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | protected function getUrlHandlersForController($controller) |
||
76 | |||
77 | /** |
||
78 | * @param string $controller |
||
79 | * @param string $config |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | protected function getValuesOrKeysFromConfig($controller, $config = 'allowed_actions') |
||
93 | } |
||
94 |
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.