osb/app/Console/Commands/PaymentsEzypayImport.php

35 lines
587 B
PHP
Raw Normal View History

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
2020-02-01 11:12:31 +00:00
use App\Classes\External\Payments\Ezypay;
use App\Jobs\PaymentsImport as Job;
2020-02-01 11:12:31 +00:00
class PaymentsEzypayImport extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
2020-02-01 11:12:31 +00:00
protected $signature = 'payments:ezypay: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);
}
2019-06-07 13:47:37 +00:00
}