2015-02-05 21:39:52 -06:00
|
|
|
<?php
|
2017-10-21 01:40:00 -05:00
|
|
|
/**
|
|
|
|
* app.php
|
2020-03-17 11:06:30 -05:00
|
|
|
* Copyright (c) 2019 james@firefly-iii.org.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2017-10-21 01:40:00 -05:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2019-10-01 23:38:00 -05:00
|
|
|
* GNU Affero General Public License for more details.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2017-10-21 01:40:00 -05:00
|
|
|
*/
|
|
|
|
|
2017-09-14 10:40:02 -05:00
|
|
|
declare(strict_types=1);
|
2019-08-10 08:09:44 -05:00
|
|
|
|
2024-01-17 13:23:02 -06:00
|
|
|
use FireflyIII\Providers\AccountServiceProvider;
|
|
|
|
use FireflyIII\Providers\AdminServiceProvider;
|
|
|
|
use FireflyIII\Providers\AppServiceProvider;
|
|
|
|
use FireflyIII\Providers\AttachmentServiceProvider;
|
|
|
|
use FireflyIII\Providers\BillServiceProvider;
|
|
|
|
use FireflyIII\Providers\BudgetServiceProvider;
|
|
|
|
use FireflyIII\Providers\CategoryServiceProvider;
|
|
|
|
use FireflyIII\Providers\CurrencyServiceProvider;
|
|
|
|
use FireflyIII\Providers\EventServiceProvider;
|
|
|
|
use FireflyIII\Providers\FireflyServiceProvider;
|
|
|
|
use FireflyIII\Providers\JournalServiceProvider;
|
|
|
|
use FireflyIII\Providers\PiggyBankServiceProvider;
|
|
|
|
use FireflyIII\Providers\RecurringServiceProvider;
|
|
|
|
use FireflyIII\Providers\RouteServiceProvider;
|
|
|
|
use FireflyIII\Providers\RuleGroupServiceProvider;
|
|
|
|
use FireflyIII\Providers\RuleServiceProvider;
|
|
|
|
use FireflyIII\Providers\SearchServiceProvider;
|
|
|
|
use FireflyIII\Providers\SessionServiceProvider;
|
|
|
|
use FireflyIII\Providers\TagServiceProvider;
|
2023-05-29 06:56:55 -05:00
|
|
|
use FireflyIII\Support\Facades\AccountForm;
|
|
|
|
use FireflyIII\Support\Facades\Amount;
|
|
|
|
use FireflyIII\Support\Facades\CurrencyForm;
|
|
|
|
use FireflyIII\Support\Facades\ExpandedForm;
|
|
|
|
use FireflyIII\Support\Facades\FireflyConfig;
|
|
|
|
use FireflyIII\Support\Facades\Navigation;
|
|
|
|
use FireflyIII\Support\Facades\PiggyBankForm;
|
|
|
|
use FireflyIII\Support\Facades\Preferences;
|
|
|
|
use FireflyIII\Support\Facades\RuleForm;
|
|
|
|
use FireflyIII\Support\Facades\Steam;
|
2024-01-17 13:23:02 -06:00
|
|
|
use Illuminate\Auth\AuthServiceProvider;
|
|
|
|
use Illuminate\Auth\Passwords\PasswordResetServiceProvider;
|
|
|
|
use Illuminate\Broadcasting\BroadcastServiceProvider;
|
|
|
|
use Illuminate\Bus\BusServiceProvider;
|
|
|
|
use Illuminate\Cache\CacheServiceProvider;
|
|
|
|
use Illuminate\Cookie\CookieServiceProvider;
|
|
|
|
use Illuminate\Database\DatabaseServiceProvider;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Encryption\EncryptionServiceProvider;
|
|
|
|
use Illuminate\Filesystem\FilesystemServiceProvider;
|
|
|
|
use Illuminate\Foundation\Providers\ConsoleSupportServiceProvider;
|
|
|
|
use Illuminate\Foundation\Providers\FoundationServiceProvider;
|
|
|
|
use Illuminate\Hashing\HashServiceProvider;
|
|
|
|
use Illuminate\Mail\MailServiceProvider;
|
|
|
|
use Illuminate\Notifications\NotificationServiceProvider;
|
|
|
|
use Illuminate\Pagination\PaginationServiceProvider;
|
|
|
|
use Illuminate\Pipeline\PipelineServiceProvider;
|
|
|
|
use Illuminate\Queue\QueueServiceProvider;
|
|
|
|
use Illuminate\Redis\RedisServiceProvider;
|
|
|
|
use Illuminate\Support\Arr;
|
|
|
|
use Illuminate\Support\Facades\App;
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
use Illuminate\Support\Facades\Blade;
|
|
|
|
use Illuminate\Support\Facades\Broadcast;
|
|
|
|
use Illuminate\Support\Facades\Bus;
|
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
use Illuminate\Support\Facades\Config;
|
|
|
|
use Illuminate\Support\Facades\Cookie;
|
|
|
|
use Illuminate\Support\Facades\Crypt;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
use Illuminate\Support\Facades\File;
|
|
|
|
use Illuminate\Support\Facades\Gate;
|
|
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
use Illuminate\Support\Facades\Http;
|
|
|
|
use Illuminate\Support\Facades\Lang;
|
|
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
use Illuminate\Support\Facades\Mail;
|
|
|
|
use Illuminate\Support\Facades\Notification;
|
|
|
|
use Illuminate\Support\Facades\Password;
|
|
|
|
use Illuminate\Support\Facades\Queue;
|
|
|
|
use Illuminate\Support\Facades\Redirect;
|
|
|
|
use Illuminate\Support\Facades\Redis;
|
|
|
|
use Illuminate\Support\Facades\Request;
|
|
|
|
use Illuminate\Support\Facades\Response;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Support\Facades\Session;
|
|
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
use Illuminate\Support\Facades\URL;
|
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
|
|
use Illuminate\Support\Facades\View;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
use Illuminate\Translation\TranslationServiceProvider;
|
|
|
|
use Illuminate\Validation\ValidationServiceProvider;
|
|
|
|
use Illuminate\View\ViewServiceProvider;
|
|
|
|
use PragmaRX\Google2FALaravel\Facade;
|
|
|
|
use Spatie\Html\Facades\Html;
|
|
|
|
use TwigBridge\Facade\Twig;
|
|
|
|
use TwigBridge\ServiceProvider;
|
2023-05-29 06:56:55 -05:00
|
|
|
|
2015-02-05 21:39:52 -06:00
|
|
|
return [
|
2018-04-26 23:26:37 -05:00
|
|
|
'name' => envNonEmpty('APP_NAME', 'Firefly III'),
|
2024-02-18 04:35:08 -06:00
|
|
|
'env' => envNonEmpty('APP_ENV', 'production'),
|
2016-11-12 13:41:15 -06:00
|
|
|
'debug' => env('APP_DEBUG', false),
|
2018-04-26 23:26:37 -05:00
|
|
|
'url' => envNonEmpty('APP_URL', 'http://localhost'),
|
|
|
|
'timezone' => envNonEmpty('TZ', 'UTC'),
|
2020-01-31 00:39:24 -06:00
|
|
|
'locale' => envNonEmpty('DEFAULT_LANGUAGE', 'en_US'),
|
2015-12-19 13:54:27 -06:00
|
|
|
'fallback_locale' => 'en_US',
|
2017-11-27 12:07:57 -06:00
|
|
|
'key' => env('APP_KEY'),
|
2016-11-12 13:41:15 -06:00
|
|
|
'cipher' => 'AES-256-CBC',
|
|
|
|
'providers' => [
|
2023-12-20 12:39:53 -06:00
|
|
|
// Laravel Framework Service Providers...
|
2024-01-17 13:23:02 -06:00
|
|
|
AuthServiceProvider::class,
|
|
|
|
BroadcastServiceProvider::class,
|
|
|
|
BusServiceProvider::class,
|
|
|
|
CacheServiceProvider::class,
|
|
|
|
ConsoleSupportServiceProvider::class,
|
|
|
|
CookieServiceProvider::class,
|
|
|
|
DatabaseServiceProvider::class,
|
|
|
|
EncryptionServiceProvider::class,
|
|
|
|
FilesystemServiceProvider::class,
|
|
|
|
FoundationServiceProvider::class,
|
|
|
|
HashServiceProvider::class,
|
|
|
|
MailServiceProvider::class,
|
|
|
|
NotificationServiceProvider::class,
|
|
|
|
PaginationServiceProvider::class,
|
|
|
|
PipelineServiceProvider::class,
|
|
|
|
QueueServiceProvider::class,
|
|
|
|
RedisServiceProvider::class,
|
|
|
|
PasswordResetServiceProvider::class,
|
|
|
|
SessionServiceProvider::class,
|
|
|
|
TranslationServiceProvider::class,
|
|
|
|
ValidationServiceProvider::class,
|
|
|
|
ViewServiceProvider::class,
|
2017-02-05 11:44:37 -06:00
|
|
|
|
2023-12-20 12:39:53 -06:00
|
|
|
// Package Service Providers...
|
2015-04-28 01:58:01 -05:00
|
|
|
|
2023-12-20 12:39:53 -06:00
|
|
|
// Application Service Providers...
|
2024-01-17 13:23:02 -06:00
|
|
|
AppServiceProvider::class,
|
2016-01-08 07:28:59 -06:00
|
|
|
FireflyIII\Providers\AuthServiceProvider::class,
|
2016-09-15 23:19:40 -05:00
|
|
|
// FireflyIII\Providers\BroadcastServiceProvider::class,
|
2024-01-17 13:23:02 -06:00
|
|
|
EventServiceProvider::class,
|
|
|
|
RouteServiceProvider::class,
|
2016-03-03 01:31:18 -06:00
|
|
|
|
2016-01-08 07:28:59 -06:00
|
|
|
// own stuff:
|
2017-12-23 10:51:45 -06:00
|
|
|
PragmaRX\Google2FALaravel\ServiceProvider::class,
|
2024-01-17 13:23:02 -06:00
|
|
|
ServiceProvider::class,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
2023-12-20 12:39:53 -06:00
|
|
|
// More service providers.
|
2024-01-17 13:23:02 -06:00
|
|
|
AccountServiceProvider::class,
|
|
|
|
AttachmentServiceProvider::class,
|
|
|
|
BillServiceProvider::class,
|
|
|
|
BudgetServiceProvider::class,
|
|
|
|
CategoryServiceProvider::class,
|
|
|
|
CurrencyServiceProvider::class,
|
|
|
|
FireflyServiceProvider::class,
|
|
|
|
JournalServiceProvider::class,
|
|
|
|
PiggyBankServiceProvider::class,
|
|
|
|
RuleServiceProvider::class,
|
|
|
|
RuleGroupServiceProvider::class,
|
|
|
|
SearchServiceProvider::class,
|
|
|
|
TagServiceProvider::class,
|
|
|
|
AdminServiceProvider::class,
|
|
|
|
RecurringServiceProvider::class,
|
2015-02-06 00:23:26 -06:00
|
|
|
],
|
2017-09-10 01:30:27 -05:00
|
|
|
'aliases' => [
|
2024-01-17 13:23:02 -06:00
|
|
|
'App' => App::class,
|
|
|
|
'Artisan' => Artisan::class,
|
|
|
|
'Auth' => Auth::class,
|
|
|
|
'Blade' => Blade::class,
|
|
|
|
'Broadcast' => Broadcast::class,
|
|
|
|
'Bus' => Bus::class,
|
|
|
|
'Cache' => Cache::class,
|
|
|
|
'Config' => Config::class,
|
|
|
|
'Cookie' => Cookie::class,
|
|
|
|
'Crypt' => Crypt::class,
|
|
|
|
'DB' => DB::class,
|
|
|
|
'Eloquent' => Model::class,
|
|
|
|
'Event' => Event::class,
|
|
|
|
'File' => File::class,
|
|
|
|
'Gate' => Gate::class,
|
|
|
|
'Hash' => Hash::class,
|
|
|
|
'Lang' => Lang::class,
|
|
|
|
'Log' => Log::class,
|
|
|
|
'Mail' => Mail::class,
|
|
|
|
'Notification' => Notification::class,
|
|
|
|
'Password' => Password::class,
|
|
|
|
'Queue' => Queue::class,
|
|
|
|
'Redirect' => Redirect::class,
|
|
|
|
'Redis' => Redis::class,
|
|
|
|
'Request' => Request::class,
|
|
|
|
'Response' => Response::class,
|
|
|
|
'Route' => Route::class,
|
|
|
|
'Schema' => Schema::class,
|
|
|
|
'Session' => Session::class,
|
|
|
|
'Storage' => Storage::class,
|
|
|
|
'URL' => URL::class,
|
|
|
|
'Validator' => Validator::class,
|
|
|
|
'View' => View::class,
|
|
|
|
'Html' => Html::class,
|
2023-05-29 06:56:55 -05:00
|
|
|
'Preferences' => Preferences::class,
|
|
|
|
'FireflyConfig' => FireflyConfig::class,
|
|
|
|
'Navigation' => Navigation::class,
|
|
|
|
'Amount' => Amount::class,
|
|
|
|
'Steam' => Steam::class,
|
|
|
|
'ExpandedForm' => ExpandedForm::class,
|
|
|
|
'CurrencyForm' => CurrencyForm::class,
|
|
|
|
'AccountForm' => AccountForm::class,
|
|
|
|
'PiggyBankForm' => PiggyBankForm::class,
|
|
|
|
'RuleForm' => RuleForm::class,
|
2024-01-17 13:23:02 -06:00
|
|
|
'Google2FA' => Facade::class,
|
|
|
|
'Twig' => Twig::class,
|
2017-12-23 13:46:52 -06:00
|
|
|
|
2024-01-17 13:23:02 -06:00
|
|
|
'Arr' => Arr::class,
|
|
|
|
'Http' => Http::class,
|
|
|
|
'Str' => Str::class,
|
2015-02-06 00:23:26 -06:00
|
|
|
],
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2024-01-01 07:45:51 -06:00
|
|
|
'asset_url' => env('ASSET_URL', null),
|
2020-06-06 15:25:52 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Faker Locale
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This locale will be used by the Faker PHP library when generating fake
|
|
|
|
| data for your database seeds. For example, this will be used to get
|
|
|
|
| localized telephone numbers, street address information and more.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-01-01 07:45:51 -06:00
|
|
|
'faker_locale' => 'en_US',
|
2015-02-05 21:39:52 -06:00
|
|
|
];
|