Skip to content

Commit

Permalink
Try extending instead of calling?
Browse files Browse the repository at this point in the history
  • Loading branch information
r-kujawa committed Aug 18, 2023
1 parent 64cb30f commit f936b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
15 changes: 2 additions & 13 deletions src/Console/Commands/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,13 @@ class Install extends Command
* @var string
*/
protected $signature = 'checkout:install
{--id= : The service identifier}';
{service=Checkout}
{--id=checkout}';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Install and configure payments within the application.';

/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->addArgument('service', 'checkout');

parent::handle();
}
}
13 changes: 1 addition & 12 deletions src/Console/Commands/MakeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class MakeProvider extends Command
*/
protected $signature = 'checkout:provider
{provider? : The payment provider name}
{--service=checkout}
{--id= : The payment provider identifier}
{--fake : Generates a gateway to be used for testing purposes}';

Expand All @@ -23,16 +24,4 @@ class MakeProvider extends Command
* @var string
*/
protected $description = 'Scaffold a new payment provider\'s gateway and response classes.';

/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->addOption('service', 'checkout');

parent::handle();
}
}

0 comments on commit f936b59

Please sign in to comment.