2016-01-08 09:02:15 -06:00
|
|
|
<?php
|
2016-01-09 01:20:55 -06:00
|
|
|
/**
|
|
|
|
* Kernel.php
|
2016-04-01 09:44:46 -05:00
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
2016-01-09 01:20:55 -06:00
|
|
|
*
|
2016-10-04 23:52:15 -05:00
|
|
|
* 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.
|
2016-01-09 01:20:55 -06:00
|
|
|
*/
|
2016-01-08 09:02:15 -06:00
|
|
|
|
2016-05-20 05:27:31 -05:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2016-01-08 09:02:15 -06:00
|
|
|
namespace FireflyIII\Console;
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2016-10-20 12:10:43 -05:00
|
|
|
use FireflyIII\Console\Commands\CreateImport;
|
2016-08-11 03:21:32 -05:00
|
|
|
use FireflyIII\Console\Commands\EncryptFile;
|
2016-07-15 15:26:08 -05:00
|
|
|
use FireflyIII\Console\Commands\Import;
|
2016-09-21 12:16:47 -05:00
|
|
|
use FireflyIII\Console\Commands\ScanAttachments;
|
2016-10-14 23:19:21 -05:00
|
|
|
use FireflyIII\Console\Commands\UpgradeDatabase;
|
2016-01-17 00:50:09 -06:00
|
|
|
use FireflyIII\Console\Commands\UpgradeFireflyInstructions;
|
2017-01-14 10:13:57 -06:00
|
|
|
use FireflyIII\Console\Commands\UseEncryption;
|
2016-04-24 11:25:52 -05:00
|
|
|
use FireflyIII\Console\Commands\VerifyDatabase;
|
2015-02-05 21:39:52 -06:00
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
2016-01-09 01:20:55 -06:00
|
|
|
/**
|
|
|
|
* Class Kernel
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Console
|
|
|
|
*/
|
2015-02-11 00:35:10 -06:00
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
{
|
2016-04-08 07:44:53 -05:00
|
|
|
/**
|
|
|
|
* The bootstrap classes for the application.
|
|
|
|
*
|
2016-09-15 23:40:45 -05:00
|
|
|
* Next upgrade verify these are the same.
|
2016-04-08 07:44:53 -05:00
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2016-04-24 11:25:52 -05:00
|
|
|
protected $bootstrappers
|
|
|
|
= [
|
2017-01-30 09:21:01 -06:00
|
|
|
'Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables',
|
2016-04-24 11:25:52 -05:00
|
|
|
'Illuminate\Foundation\Bootstrap\LoadConfiguration',
|
2017-01-30 09:27:33 -06:00
|
|
|
//'FireflyIII\Bootstrap\ConfigureLogging',
|
2016-04-24 11:25:52 -05:00
|
|
|
'Illuminate\Foundation\Bootstrap\HandleExceptions',
|
|
|
|
'Illuminate\Foundation\Bootstrap\RegisterFacades',
|
|
|
|
'Illuminate\Foundation\Bootstrap\SetRequestForConsole',
|
|
|
|
'Illuminate\Foundation\Bootstrap\RegisterProviders',
|
|
|
|
'Illuminate\Foundation\Bootstrap\BootProviders',
|
|
|
|
];
|
2016-04-08 07:44:53 -05:00
|
|
|
|
2015-02-11 00:35:10 -06:00
|
|
|
/**
|
|
|
|
* The Artisan commands provided by your application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2016-01-15 16:12:52 -06:00
|
|
|
protected $commands
|
|
|
|
= [
|
2016-01-19 06:59:54 -06:00
|
|
|
UpgradeFireflyInstructions::class,
|
2016-04-24 11:25:52 -05:00
|
|
|
VerifyDatabase::class,
|
2016-07-15 15:26:08 -05:00
|
|
|
Import::class,
|
2016-10-20 12:10:43 -05:00
|
|
|
CreateImport::class,
|
2016-08-11 03:21:32 -05:00
|
|
|
EncryptFile::class,
|
2016-09-21 12:16:47 -05:00
|
|
|
ScanAttachments::class,
|
2016-10-14 23:19:21 -05:00
|
|
|
UpgradeDatabase::class,
|
2017-01-14 10:13:57 -06:00
|
|
|
UseEncryption::class,
|
2016-01-15 16:12:52 -06:00
|
|
|
];
|
2016-09-15 23:40:45 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Register the Closure based commands for the application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function commands()
|
|
|
|
{
|
|
|
|
require base_path('routes/console.php');
|
|
|
|
}
|
2015-02-05 21:39:52 -06:00
|
|
|
}
|