40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Services;
|
|
|
|
use App\Console\Commands\Nuh;
|
|
use App\Console\Commands\Services\Tasks\DBMapper;
|
|
use App\Console\Commands\Services\Tasks\GenerateAlarms;
|
|
use App\Console\Commands\Services\Tasks\GenerateSetting;
|
|
use App\Console\Commands\Services\Tasks\MarketsList;
|
|
use App\Console\Commands\Services\Tasks\NotifyAlarms;
|
|
use App\Console\Commands\Services\Tasks\TxoddsFlags;
|
|
|
|
class Services
|
|
{
|
|
public static function switch()
|
|
{
|
|
switch (Nuh::$options['name']) {
|
|
case 'Txodds Markets':
|
|
MarketsList::call();
|
|
break;
|
|
case 'Txodds Flags':
|
|
TxoddsFlags::call();
|
|
break;
|
|
case 'DB Mapper':
|
|
DBMapper::run();
|
|
break;
|
|
case 'Generate Setting':
|
|
GenerateSetting::run();
|
|
break;
|
|
case 'Generate Alarms':
|
|
GenerateAlarms::run();
|
|
break;
|
|
case 'Notify Alarms':
|
|
NotifyAlarms::run();
|
|
break;
|
|
|
|
}
|
|
}
|
|
}
|