2020-05-17 15:23:39 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
2021-07-01 19:06:09 +08:00
|
|
|
use App\Models\Order;
|
2020-05-17 15:23:39 +08:00
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
class Test extends Command
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name and signature of the console command.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $signature = 'test';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The console command description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $description = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new command instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the console command.
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
2021-07-02 22:34:42 +08:00
|
|
|
foreach (glob(app_path('Http//Controllers//Client//Protocols') . '/*.php') as $file) {
|
|
|
|
$file = 'App\\Http\\Controllers\\Client\\Protocols' . basename($file, '.php');
|
|
|
|
new $file();
|
|
|
|
var_dump($file);
|
|
|
|
}
|
2020-05-17 15:23:39 +08:00
|
|
|
}
|
|
|
|
}
|