1 | <?php |
||
15 | class ConsoleController extends Controller |
||
|
|||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private static $allowed_actions = [ |
||
21 | 'publish', |
||
22 | 'ConsoleForm' |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * @var SilverstripeApplication |
||
27 | */ |
||
28 | protected $application; |
||
29 | |||
30 | public function init() |
||
36 | |||
37 | public function index(SS_HTTPRequest $request) |
||
53 | |||
54 | protected function callFromConsole() |
||
61 | |||
62 | protected function callFromBrowser(SS_HTTPRequest $request) |
||
80 | /** |
||
81 | * @return ConsoleForm |
||
82 | */ |
||
83 | public function ConsoleForm() |
||
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.