Removed redundant functions in Account, Optimised User a little more, Moved Ezypay Commands to new Ezypay folder
This commit is contained in:
35
app/Console/Commands/Ezypay/PaymentsImport.php
Normal file
35
app/Console/Commands/Ezypay/PaymentsImport.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Ezypay;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
use App\Classes\External\Payments\Ezypay;
|
||||
use App\Jobs\PaymentsImport as Job;
|
||||
|
||||
class PaymentsImport extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'ezypay:payment:import';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Retrieve payments from Ezypay';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
Job::dispatchSync(new Ezypay);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user