added new namespaces for all of the commands

This commit is contained in:
2020-05-09 08:59:01 -05:00
parent 09e56371e6
commit cf00909444
18 changed files with 105 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Assets;
use Illuminate\Console\Command;
use DB;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Corps;
//Internal Library
use Illuminate\Console\Command;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Data;
//Internal Library
use Illuminate\Console\Command;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Data;
//Internal Library
use Illuminate\Console\Command;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Files;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Finances;
use Illuminate\Console\Command;
use Log;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Finances;
use Illuminate\Console\Command;
use Log;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Flex;
//Internal Library
use Illuminate\Console\Command;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Moons;
use Illuminate\Console\Command;
@@ -11,7 +11,7 @@ class FetchMoonLedgerCommand extends Command
*
* @var string
*/
protected $signature = 'command:name';
protected $signature = 'services:FetchMoonLedgers';
/**
* The console command description.

View 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');
}
}

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Moons;
//Internal Library
use Illuminate\Console\Command;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Moons;
//Internal Library
use Illuminate\Console\Command;
@@ -15,7 +15,7 @@ use App\Library\Esi\Esi;
use App\Models\Moon\RentalMoon;
use App\Models\Moon\RentalMoonObserver;
class FetchRentalMoonObservers extends Command
class FetchRentalMoonObserversCommand extends Command
{
/**
* The name and signature of the console command.

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Moons;
use Illuminate\Console\Command;
use Carbon\Carbon;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Moons;
use Illuminate\Console\Command;
use Carbon\Carbon;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Structures;
use Illuminate\Console\Command;
use Log;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Users;
//Internal Library
use Illuminate\Console\Command;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Wormholes;
//Internal Library
use Illuminate\Console\Command;

View File

@@ -17,18 +17,22 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected $commands = [
Commands\GetCorpsCommand::class,
Commands\UpdateMoonPriceCommand::class,
Commands\HoldingFinancesCommand::class,
Commands\MoonMailerCommand::class,
Commands\GetStructuresCommand::class,
Commands\GetAssetsCommand::class,
Commands\PurgeUsers::class,
Commands\FlexStructureCommand::class,
Commands\EmptyJumpBridges::class,
Commands\PurgeWormholes::class,
Commands\SovBillsCommand::class,
Commands\CleanStaleDataCommand::class,
Commands\Corps\GetCorpsCommand::class,
Commands\Moons\UpdateMoonPriceCommand::class,
Commands\Finances\HoldingFinancesCommand::class,
Commands\Moons\MoonMailerCommand::class,
Commands\Structures\GetStructuresCommand::class,
Commands\Assets\GetAssetsCommand::class,
Commands\Users\PurgeUsers::class,
Commands\Flex\FlexStructureCommand::class,
Commands\Data\EmptyJumpBridges::class,
Commands\Wormholes\PurgeWormholes::class,
Commands\Finances\SovBillsCommand::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)
{
//Horizon Graph Schedule
$schedule->command('horizon:snapshot')->everyFiveMinutes();
//Command to get the holding journal finances
$schedule->command('services:HoldingJournal')
->hourly()
@@ -81,9 +87,21 @@ class Kernel extends ConsoleKernel
$schedule->command('services:CleanData')
->weekly(7, '11:00')
->withoutOverlapping();
//Horizon Graph Schedule
$schedule->command('horizon:snapshot')->everyFiveMinutes();
/**
* New Commands
*/
//$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();
}
/**