mirror of
https://github.com/danielbrendel/hortusfox-web.git
synced 2026-04-28 01:29:11 -05:00
83 lines
2.5 KiB
Plaintext
83 lines
2.5 KiB
Plaintext
<?php
|
|
|
|
/*
|
|
Asatru PHP (dnyAsatruPHP) developed by Daniel Brendel
|
|
|
|
(C) 2019 - 2025 by Daniel Brendel
|
|
|
|
Contact: dbrendel1988<at>gmail<dot>com
|
|
GitHub: https://github.com/danielbrendel/
|
|
|
|
Released under the MIT license
|
|
*/
|
|
|
|
//Set application root directory path
|
|
define('ASATRU_APP_ROOT', __DIR__);
|
|
|
|
//If composer is installed then utilize its autoloader
|
|
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
}
|
|
|
|
//Require constants
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/constants.php';
|
|
|
|
//Require .env config management
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/dotenv.php';
|
|
|
|
//Parse .env file if it exists
|
|
if (file_exists('.env')) {
|
|
env_parse('.env');
|
|
}
|
|
|
|
//Require logging
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/logger.php';
|
|
|
|
//Require autoload component
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/autoload.php';
|
|
|
|
//Require config component
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/config.php';
|
|
|
|
//Require helpers
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/helper.php';
|
|
|
|
//Include CLI handler
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/console.php';
|
|
|
|
//Require localization
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/locale.php';
|
|
|
|
//Require view components
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/view.php';
|
|
|
|
//Require database handler
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/database.php';
|
|
|
|
//Require modules
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/modules.php';
|
|
|
|
//Require event manager
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/events.php';
|
|
|
|
//Require mail wrapper
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/mailwrapper.php';
|
|
|
|
//Require SMTP mail handler
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/smtpmailer.php';
|
|
|
|
//Require testing component
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/testing.php';
|
|
|
|
//Require command handler
|
|
require_once __DIR__ . '/vendor/danielbrendel/asatru-php-framework/src/commands.php';
|
|
|
|
//Process further if in debug mode
|
|
if ((isset($_ENV['APP_DEBUG'])) && ($_ENV['APP_DEBUG'])) {
|
|
Asatru\Console\handleInput($argv);
|
|
} else {
|
|
echo "\033[31mCLI tool is only available in debug mode\033[39m\n";
|
|
}
|
|
|
|
//Success, we can end script execution
|
|
exit(0); |