From ca2815294350880cc8f86cb761db54944a51d4a4 Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Wed, 6 Sep 2017 13:34:17 +0100 Subject: [PATCH] switch fire to handle for L5.5 compatibility --- .../Panel/Commands/CreateControllerPanelCommand.php | 2 +- src/Serverfireteam/Panel/Commands/CreateModelCommand.php | 4 ++-- .../Panel/Commands/CreateModelObserverCommand.php | 2 +- src/Serverfireteam/Panel/Commands/CrudCommand.php | 2 +- src/Serverfireteam/Panel/Commands/PanelCommand.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php b/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php index 6458757..95fd93a 100644 --- a/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php +++ b/src/Serverfireteam/Panel/Commands/CreateControllerPanelCommand.php @@ -60,7 +60,7 @@ protected function getDefaultNamespace($rootNamespace) * * @return void */ - public function fire() + public function handle() { $name = $this->qualifyClass($this->getNameInput()) . 'Controller'; diff --git a/src/Serverfireteam/Panel/Commands/CreateModelCommand.php b/src/Serverfireteam/Panel/Commands/CreateModelCommand.php index 2b0a83b..c3a0bc6 100644 --- a/src/Serverfireteam/Panel/Commands/CreateModelCommand.php +++ b/src/Serverfireteam/Panel/Commands/CreateModelCommand.php @@ -39,9 +39,9 @@ protected function getStub() * fire model and observer model class * @return void */ - public function fire() + public function handle() { - parent::fire(); + parent::handle(); $this->call('panel:createobserver', ['name' => $this->argument('name')]); } diff --git a/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php b/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php index 927e0ff..c2876ea 100644 --- a/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php +++ b/src/Serverfireteam/Panel/Commands/CreateModelObserverCommand.php @@ -51,7 +51,7 @@ protected function getDefaultNamespace($rootNamespace) * * @return void */ - public function fire() + public function handle() { $name = $this->qualifyClass($this->getNameInput()); diff --git a/src/Serverfireteam/Panel/Commands/CrudCommand.php b/src/Serverfireteam/Panel/Commands/CrudCommand.php index 6d69137..385584f 100644 --- a/src/Serverfireteam/Panel/Commands/CrudCommand.php +++ b/src/Serverfireteam/Panel/Commands/CrudCommand.php @@ -32,7 +32,7 @@ public function __construct() * Execute the console command. * */ - public function fire() + public function handle() { $this->info(' [ ServerFireTeam Panel Crud Generator ] '); diff --git a/src/Serverfireteam/Panel/Commands/PanelCommand.php b/src/Serverfireteam/Panel/Commands/PanelCommand.php index f111f33..d5a2681 100644 --- a/src/Serverfireteam/Panel/Commands/PanelCommand.php +++ b/src/Serverfireteam/Panel/Commands/PanelCommand.php @@ -33,7 +33,7 @@ public function __construct() * Execute the console command. * */ - public function fire() + public function handle() { $this->info(' [ Welcome to ServerFireTeam Panel Installation ] ');