mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-02 13:39:19 -06:00
39917b77c1
Signed-off-by: James Cole <thegrumpydictator@gmail.com>
91 lines
2.4 KiB
PHP
Executable File
91 lines
2.4 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Kernel.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms of the
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
*
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Console;
|
|
|
|
use FireflyIII\Console\Commands\CreateImport;
|
|
use FireflyIII\Console\Commands\EncryptFile;
|
|
use FireflyIII\Console\Commands\Import;
|
|
use FireflyIII\Console\Commands\MoveRepository;
|
|
use FireflyIII\Console\Commands\ScanAttachments;
|
|
use FireflyIII\Console\Commands\UpgradeDatabase;
|
|
use FireflyIII\Console\Commands\UpgradeFireflyInstructions;
|
|
use FireflyIII\Console\Commands\VerifyDatabase;
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
/**
|
|
* Class Kernel
|
|
*
|
|
* @package FireflyIII\Console
|
|
*/
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
/**
|
|
* The bootstrap classes for the application.
|
|
*
|
|
* Next upgrade verify these are the same.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $bootstrappers
|
|
= [
|
|
'Illuminate\Foundation\Bootstrap\DetectEnvironment',
|
|
'Illuminate\Foundation\Bootstrap\LoadConfiguration',
|
|
'FireflyIII\Bootstrap\ConfigureLogging',
|
|
'Illuminate\Foundation\Bootstrap\HandleExceptions',
|
|
'Illuminate\Foundation\Bootstrap\RegisterFacades',
|
|
'Illuminate\Foundation\Bootstrap\SetRequestForConsole',
|
|
'Illuminate\Foundation\Bootstrap\RegisterProviders',
|
|
'Illuminate\Foundation\Bootstrap\BootProviders',
|
|
];
|
|
|
|
/**
|
|
* The Artisan commands provided by your application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $commands
|
|
= [
|
|
UpgradeFireflyInstructions::class,
|
|
VerifyDatabase::class,
|
|
Import::class,
|
|
CreateImport::class,
|
|
EncryptFile::class,
|
|
ScanAttachments::class,
|
|
UpgradeDatabase::class,
|
|
MoveRepository::class,
|
|
];
|
|
|
|
/**
|
|
* Register the Closure based commands for the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function commands()
|
|
{
|
|
require base_path('routes/console.php');
|
|
}
|
|
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
}
|
|
}
|