xf_phantom
Well-known member
If you would move the names to the XenForo_Application::loadDefaultConfig we could use a own Frontcontroller without the need to change the index.php & admin.php on each xenforo upgrade.
Then we could set all the classnames via config.php
ATM i need to patch my files on each xenforo upgrade..
Then we could set all the classnames via config.php
ATM i need to patch my files on each xenforo upgrade..
PHP:
$startTime = microtime(true);
$fileDir = dirname(__FILE__);
require($fileDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');
XenForo_Application::initialize($fileDir . '/library', $fileDir);
XenForo_Application::set('page_start_time', $startTime);
$config = XenForo_Application::getConfig();
$dependenciesClassName = $config->dependeciesPublic;
$frontControllerClassName = $config->frontController;
$fc = new $frontControllerClassName(new $dependenciesClassName());
$fc->run();
Upvote
0