From ff66db0607255288ec1f853634de86f503242c42 Mon Sep 17 00:00:00 2001 From: YAAP Date: Fri, 20 Jul 2018 15:44:32 +0300 Subject: [PATCH 1/2] renamed AppNamespaceDetectorTrait to DetectsApplicationNamespace --- src/Generator/ApiMakeCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generator/ApiMakeCommand.php b/src/Generator/ApiMakeCommand.php index 6e4c7c3..28c5948 100644 --- a/src/Generator/ApiMakeCommand.php +++ b/src/Generator/ApiMakeCommand.php @@ -2,14 +2,14 @@ namespace Arrilot\Api\Generator; -use Illuminate\Console\AppNamespaceDetectorTrait; +use Illuminate\Console\DetectsApplicationNamespace; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; use Symfony\Component\Console\Input\InputArgument; class ApiMakeCommand extends Command { - use AppNamespaceDetectorTrait; + use DetectsApplicationNamespace; /** * The filesystem instance. From 703468e128eb202f3c87fe1b5b1c9497cd4783b1 Mon Sep 17 00:00:00 2001 From: YAAP Date: Fri, 20 Jul 2018 15:57:11 +0300 Subject: [PATCH 2/2] update command --- src/Generator/ApiMakeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/ApiMakeCommand.php b/src/Generator/ApiMakeCommand.php index 28c5948..b7ded9e 100644 --- a/src/Generator/ApiMakeCommand.php +++ b/src/Generator/ApiMakeCommand.php @@ -64,7 +64,7 @@ public function __construct(Filesystem $files) * * @return void */ - public function fire() + public function handle() { $this->prepareVariablesForStubs($this->argument('name'));