1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Kernel.php |
4
|
|
|
* Copyright (c) 2020 [email protected]. |
5
|
|
|
* |
6
|
|
|
* This file is part of the Firefly III bunq importer |
7
|
|
|
* (https://github.com/firefly-iii/bunq-importer). |
8
|
|
|
* |
9
|
|
|
* This program is free software: you can redistribute it and/or modify |
10
|
|
|
* it under the terms of the GNU Affero General Public License as |
11
|
|
|
* published by the Free Software Foundation, either version 3 of the |
12
|
|
|
* License, or (at your option) any later version. |
13
|
|
|
* |
14
|
|
|
* This program is distributed in the hope that it will be useful, |
15
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17
|
|
|
* GNU Affero General Public License for more details. |
18
|
|
|
* |
19
|
|
|
* You should have received a copy of the GNU Affero General Public License |
20
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. |
21
|
|
|
*/ |
22
|
|
|
|
23
|
|
|
declare(strict_types=1); |
24
|
|
|
|
25
|
|
|
namespace App\Console; |
26
|
|
|
|
27
|
|
|
use Illuminate\Console\Scheduling\Schedule; |
28
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
29
|
|
|
|
30
|
|
|
class Kernel extends ConsoleKernel |
31
|
|
|
{ |
32
|
|
|
/** |
33
|
|
|
* The Artisan commands provided by your application. |
34
|
|
|
* |
35
|
|
|
* @var array |
36
|
|
|
*/ |
37
|
|
|
protected $commands |
38
|
|
|
= [ |
39
|
|
|
// |
40
|
|
|
]; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* Register the commands for the application. |
44
|
|
|
* |
45
|
|
|
* @return void |
46
|
|
|
*/ |
47
|
|
|
protected function commands() |
48
|
|
|
{ |
49
|
|
|
$this->load(__DIR__ . '/Commands'); |
50
|
|
|
|
51
|
|
|
require base_path('routes/console.php'); |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* Define the application's command schedule. |
56
|
|
|
* |
57
|
|
|
* @param Schedule $schedule |
58
|
|
|
* |
59
|
|
|
* @return void |
60
|
|
|
*/ |
61
|
|
|
protected function schedule(Schedule $schedule) |
62
|
|
|
{ |
63
|
|
|
// $schedule->command('inspire') |
64
|
|
|
// ->hourly(); |
65
|
|
|
} |
66
|
|
|
} |
67
|
|
|
|