From 66f2617017d252a5078f37774701ef3d16b5324d Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 22 Jul 2018 09:41:16 -0500 Subject: [PATCH] formatting --- src/Illuminate/Routing/Console/ControllerMakeCommand.php | 6 +----- .../Routing/Console/stubs/controller.invokable.stub | 5 +++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Illuminate/Routing/Console/ControllerMakeCommand.php b/src/Illuminate/Routing/Console/ControllerMakeCommand.php index c168c0d90ff2..17aab4723f06 100755 --- a/src/Illuminate/Routing/Console/ControllerMakeCommand.php +++ b/src/Illuminate/Routing/Console/ControllerMakeCommand.php @@ -175,13 +175,9 @@ protected function getOptions() { return [ ['model', 'm', InputOption::VALUE_OPTIONAL, 'Generate a resource controller for the given model.'], - ['resource', 'r', InputOption::VALUE_NONE, 'Generate a resource controller class.'], - - ['invokable', 'i', InputOption::VALUE_NONE, 'Generate a single action controller class.'], - + ['invokable', 'i', InputOption::VALUE_NONE, 'Generate a single method, invokable controller class.'], ['parent', 'p', InputOption::VALUE_OPTIONAL, 'Generate a nested resource controller class.'], - ['api', null, InputOption::VALUE_NONE, 'Exclude the create and edit methods from the controller.'], ]; } diff --git a/src/Illuminate/Routing/Console/stubs/controller.invokable.stub b/src/Illuminate/Routing/Console/stubs/controller.invokable.stub index 070dd6416879..cdc7fd563f03 100644 --- a/src/Illuminate/Routing/Console/stubs/controller.invokable.stub +++ b/src/Illuminate/Routing/Console/stubs/controller.invokable.stub @@ -8,11 +8,12 @@ use DummyRootNamespaceHttp\Controllers\Controller; class DummyClass extends Controller { /** - * Run action. + * Handle the incoming request. * + * @param \Illuminate\Http\Request * @return \Illuminate\Http\Response */ - public function __invoke() + public function __invoke(Request $request) { // }