Merge pull request #6575 from robbieaverill/bugfix/zend-autoloader

FIX Ensure that Zend_ classes can still be autoloaded
This commit is contained in:
Damian Mooyman 2017-01-31 16:45:22 +13:00 committed by GitHub
commit 08faa7d786

View File

@ -54,6 +54,14 @@ mb_regex_encoding('UTF-8');
*/
gc_enable();
/**
* Include the Zend autoloader. This will be removed in the near future.
*/
if (file_exists('thirdparty/Zend/Loader/Autoloader.php')) {
require_once 'thirdparty/Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
}
// 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'));