1 | <?php |
||
16 | class ConsoleController extends Controller |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private static $allowed_actions = [ |
||
22 | 'publish', |
||
23 | 'ConsoleForm', |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * @var SilverstripeApplication |
||
28 | */ |
||
29 | protected $application; |
||
30 | |||
31 | public function init() |
||
37 | |||
38 | public function index(SS_HTTPRequest $request) |
||
55 | |||
56 | protected function callFromConsole() |
||
63 | |||
64 | protected function callFromBrowser(SS_HTTPRequest $request) |
||
82 | |||
83 | /** |
||
84 | * @return ConsoleForm |
||
85 | */ |
||
86 | public function ConsoleForm() |
||
90 | } |
||
91 |
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.