| 1 | <?php |
||
| 10 | class ConsoleController extends Controller |
||
|
|
|||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private static $allowed_actions = [ |
||
| 16 | 'publish', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Symfony\Component\Console\Application |
||
| 21 | */ |
||
| 22 | protected $application; |
||
| 23 | |||
| 24 | public function index() |
||
| 38 | |||
| 39 | public function publish() |
||
| 47 | |||
| 48 | protected function writeSuperSakeFileToWebRoot() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * protect the supersake file with htaccess. |
||
| 58 | */ |
||
| 59 | protected function writehtaccess() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * protect the supersake file with web.config. |
||
| 70 | */ |
||
| 71 | public function writewebconfig() |
||
| 75 | } |
||
| 76 |
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.