added new namespaces for all of the commands
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Assets;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use DB;
|
use DB;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Corps;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Data;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Data;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Files;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Finances;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Log;
|
use Log;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Finances;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Log;
|
use Log;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Flex;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Moons;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ class FetchMoonLedgerCommand extends Command
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'command:name';
|
protected $signature = 'services:FetchMoonLedgers';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
|
|||||||
54
app/Console/Commands/Moons/FetchMoonObserversCommand.php
Normal file
54
app/Console/Commands/Moons/FetchMoonObserversCommand.php
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Console\Commands\Moons;
|
||||||
|
|
||||||
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
|
class FetchMoonObserversCommand extends Command
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The name and signature of the console command.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $signature = 'services:FetchMoonObservers';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The console command description.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $description = 'Fetch Moon Observers';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new command instance.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Execute the console command.
|
||||||
|
*
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
//Create the command helper container
|
||||||
|
$task = new CommandHelper('FetchMoonObservers');
|
||||||
|
//Add the entry into the jobs table saying the job has started
|
||||||
|
$task->SetStartStatus();
|
||||||
|
|
||||||
|
//Declare some variables
|
||||||
|
$lookup = new LookupHelper;
|
||||||
|
$esi = new Esi;
|
||||||
|
|
||||||
|
//Get the configuration from the main site
|
||||||
|
$config = config('esi');
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Moons;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Moons;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
@@ -15,7 +15,7 @@ use App\Library\Esi\Esi;
|
|||||||
use App\Models\Moon\RentalMoon;
|
use App\Models\Moon\RentalMoon;
|
||||||
use App\Models\Moon\RentalMoonObserver;
|
use App\Models\Moon\RentalMoonObserver;
|
||||||
|
|
||||||
class FetchRentalMoonObservers extends Command
|
class FetchRentalMoonObserversCommand extends Command
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The name and signature of the console command.
|
* The name and signature of the console command.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Moons;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Moons;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Structures;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Log;
|
use Log;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Users;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands\Wormholes;
|
||||||
|
|
||||||
//Internal Library
|
//Internal Library
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|||||||
@@ -17,18 +17,22 @@ class Kernel extends ConsoleKernel
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $commands = [
|
protected $commands = [
|
||||||
Commands\GetCorpsCommand::class,
|
Commands\Corps\GetCorpsCommand::class,
|
||||||
Commands\UpdateMoonPriceCommand::class,
|
Commands\Moons\UpdateMoonPriceCommand::class,
|
||||||
Commands\HoldingFinancesCommand::class,
|
Commands\Finances\HoldingFinancesCommand::class,
|
||||||
Commands\MoonMailerCommand::class,
|
Commands\Moons\MoonMailerCommand::class,
|
||||||
Commands\GetStructuresCommand::class,
|
Commands\Structures\GetStructuresCommand::class,
|
||||||
Commands\GetAssetsCommand::class,
|
Commands\Assets\GetAssetsCommand::class,
|
||||||
Commands\PurgeUsers::class,
|
Commands\Users\PurgeUsers::class,
|
||||||
Commands\FlexStructureCommand::class,
|
Commands\Flex\FlexStructureCommand::class,
|
||||||
Commands\EmptyJumpBridges::class,
|
Commands\Data\EmptyJumpBridges::class,
|
||||||
Commands\PurgeWormholes::class,
|
Commands\Wormholes\PurgeWormholes::class,
|
||||||
Commands\SovBillsCommand::class,
|
Commands\Finances\SovBillsCommand::class,
|
||||||
Commands\CleanStaleDataCommand::class,
|
Commands\Data\CleanStaleDataCommand::class,
|
||||||
|
//Commands\Moons\FetchMoonLedgerCommand::class,
|
||||||
|
//Commands\Moons\FetchMoonObserversCommand::class,
|
||||||
|
//Commands\Moons\FetchRentalMoonLedgerCommand::class,
|
||||||
|
//Commands\Moons\FetchRentalMoonObserversCommand::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,6 +43,8 @@ class Kernel extends ConsoleKernel
|
|||||||
*/
|
*/
|
||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
|
//Horizon Graph Schedule
|
||||||
|
$schedule->command('horizon:snapshot')->everyFiveMinutes();
|
||||||
//Command to get the holding journal finances
|
//Command to get the holding journal finances
|
||||||
$schedule->command('services:HoldingJournal')
|
$schedule->command('services:HoldingJournal')
|
||||||
->hourly()
|
->hourly()
|
||||||
@@ -81,9 +87,21 @@ class Kernel extends ConsoleKernel
|
|||||||
$schedule->command('services:CleanData')
|
$schedule->command('services:CleanData')
|
||||||
->weekly(7, '11:00')
|
->weekly(7, '11:00')
|
||||||
->withoutOverlapping();
|
->withoutOverlapping();
|
||||||
|
/**
|
||||||
//Horizon Graph Schedule
|
* New Commands
|
||||||
$schedule->command('horizon:snapshot')->everyFiveMinutes();
|
*/
|
||||||
|
//$schedule->command('services:FetchMoonLedgers')
|
||||||
|
// ->hourlyAt(30)
|
||||||
|
// ->withoutOverlapping();
|
||||||
|
//$schedule->command('services:FetchMoonObservers')
|
||||||
|
// ->hourlyAt(15)
|
||||||
|
// ->withoutOverlapping();
|
||||||
|
//$schedule->command('services:FetchRentalMoonObservers')
|
||||||
|
// ->hourlyAt(15)
|
||||||
|
// ->withoutOverlapping();
|
||||||
|
//$schedule->command('services:FetchRentalMoonLedgers')
|
||||||
|
// ->hourlyAt(20)
|
||||||
|
// ->withoutOverlapping();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user