/** * This Method Is Used To Initiate Loading Order Of Specified Components */ private static function LoadComponents() { $Components = ['Classes']; foreach ($Components as $Component) { Bootstrap::LoadOrder($Component); } }
<?php require_once 'Core/Classes/Bootstrap.Class.php'; use Core\Classes\Bootstrap; use Core\Classes\ErrorHandler; use Core\Libraries\FreedomCore\System\Manager; use Core\Libraries\FreedomCore\System\Session; use Core\Extensions\User; use Core\Extensions\Account; if (isset($_ENV['installation_in_progress'])) { Bootstrap::Initialize(false); } else { Bootstrap::Initialize(); $Session = new Session(); Manager::LoadExtension('DatabaseManager'); $User = Manager::LoadExtension('User', $Smarty, true); $Account = Manager::LoadExtension('Account', $Smarty, true); $Website = Manager::LoadExtension('Website', $Smarty, true); } new ErrorHandler($Smarty);