1 | <?php |
||
10 | class ConsoleController extends Controller |
||
|
|||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private static $allowed_actions = array( |
||
16 | 'publish' |
||
17 | ); |
||
18 | |||
19 | /** |
||
20 | * @var Symfony\Component\Console\Application |
||
21 | */ |
||
22 | protected $application; |
||
23 | |||
24 | public function index() |
||
39 | |||
40 | public function publish() |
||
48 | |||
49 | public function loadCommands() |
||
65 | |||
66 | protected function writeSuperSakeFileToWebRoot() |
||
67 | { |
||
68 | file_put_contents( |
||
69 | BASE_PATH . '/supersake', |
||
70 | file_get_contents(BASE_PATH . '/console/publish/supersake') |
||
71 | ); |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * protect the supersake file with htaccess |
||
76 | */ |
||
77 | protected function writehtaccess() |
||
86 | |||
87 | /** |
||
88 | * protect the supersake file with web.config |
||
89 | */ |
||
90 | public function writewebconfig() |
||
94 | |||
95 | |||
96 | } |
||
97 |
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.