mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Remove unnecessary manual includes
Core.php can rely on composer’s autoloader now that classes are PSR-4 compliant. If you stuck to the core modules, you could even remove ClassLoader’s autoloader, but this would break any module that hasn’t been updated to support PSR-4, so I’ve left it in. In the future, it would be good to apply SilverStripe’s auto-loader only to those modules that aren’t coded to use PSR-4, as it would make class loading more predictable.
This commit is contained in:
parent
bfd9cb1aca
commit
5a786624aa
@ -53,36 +53,6 @@ mb_regex_encoding('UTF-8');
|
||||
*/
|
||||
gc_enable();
|
||||
|
||||
// Include the files needed the initial manifest building, as well as any files
|
||||
// that are needed for the boostrap process on every request.
|
||||
require_once 'Core/Cache.php';
|
||||
require_once 'Core/CustomMethods.php';
|
||||
require_once 'Core/Extensible.php';
|
||||
require_once 'Core/Injector/Injectable.php';
|
||||
require_once 'Core/Config/Configurable.php';
|
||||
require_once 'Core/Object.php';
|
||||
require_once 'Core/ClassInfo.php';
|
||||
require_once 'Core/Config/DAG.php';
|
||||
require_once 'Core/Config/DAG_CyclicException.php';
|
||||
require_once 'Core/Config/DAG_Iterator.php';
|
||||
require_once 'Core/Config/Config.php';
|
||||
require_once 'View/TemplateGlobalProvider.php';
|
||||
require_once 'Control/Director.php';
|
||||
require_once 'Dev/Debug.php';
|
||||
require_once 'Dev/DebugView.php';
|
||||
require_once 'Dev/CliDebugView.php';
|
||||
require_once 'Dev/Backtrace.php';
|
||||
require_once 'Assets/FileFinder.php';
|
||||
require_once 'Core/Manifest/ManifestCache.php';
|
||||
require_once 'Core/Manifest/ClassLoader.php';
|
||||
require_once 'Core/Manifest/ConfigManifest.php';
|
||||
require_once 'Core/Manifest/ConfigStaticManifest.php';
|
||||
require_once 'Core/Manifest/ClassManifest.php';
|
||||
require_once 'Core/Manifest/ManifestFileFinder.php';
|
||||
require_once 'View/ThemeResourceLoader.php';
|
||||
require_once 'Core/Manifest/TokenisedRegularExpression.php';
|
||||
require_once 'Core/Injector/Injector.php';
|
||||
|
||||
// Initialise the dependency injector as soon as possible, as it is
|
||||
// subsequently used by some of the following code
|
||||
$injector = new Injector(array('locator' => 'SilverStripe\\Core\\Injector\\SilverStripeServiceConfigurationLocator'));
|
||||
|
Loading…
Reference in New Issue
Block a user