Mercurial > hg > cmmr2012-drupal-site
comparison vendor/composer/autoload_real.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
20 } | 20 } |
21 | 21 |
22 spl_autoload_register(array('ComposerAutoloaderInitDrupal8', 'loadClassLoader'), true, true); | 22 spl_autoload_register(array('ComposerAutoloaderInitDrupal8', 'loadClassLoader'), true, true); |
23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); | 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); |
24 spl_autoload_unregister(array('ComposerAutoloaderInitDrupal8', 'loadClassLoader')); | 24 spl_autoload_unregister(array('ComposerAutoloaderInitDrupal8', 'loadClassLoader')); |
25 | |
26 $includePaths = require __DIR__ . '/include_paths.php'; | |
27 $includePaths[] = get_include_path(); | |
28 set_include_path(implode(PATH_SEPARATOR, $includePaths)); | |
25 | 29 |
26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); | 30 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
27 if ($useStaticLoader) { | 31 if ($useStaticLoader) { |
28 require_once __DIR__ . '/autoload_static.php'; | 32 require_once __DIR__ . '/autoload_static.php'; |
29 | 33 |