So apparently a class map MIGHT be faster in some instances so I just winged it and got classmaps working in XenForo.
- Compatible XF Versions:
- Additional Requirements:
- PHP 5.3
- Visible Branding:
I honestly have not done any performance testing so if anyone want's to test it out that would be awesome
It will only call the class map for whatever initializing file you choose (index.php, admin.php).
To install, just upload the files and install the XML.
Open up index.php in your XenForo root and change this line:
to this:Code:require($fileDir . '/library/XenForo/Autoloader.php');
And you're done!Code:require($fileDir . '/library/ClassMapAutoloader/Autoloader.php');
You can go to Tools in the admin panel and click to rebuild the class map manually.
It will normally be rebuilt when any add-on is installed or uninstalled to make sure it is up-to-date for normal users.