Files
firefly-iii/app/Console/Kernel.php

78 lines
2.1 KiB
PHP
Raw Normal View History

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