16 if (null === $provider) {
33 $loader = new \Elgg\ClassLoader(
new \
Elgg\ClassMap());
37 $manager = new \Elgg\AutoloadManager(
$loader);
39 return new \Elgg\Di\ServiceProvider($manager);
52 if (! $manager->loadCache()) {
53 $manager->addClasses(dirname(dirname(__FILE__)) .
'/classes');
115 $events->registerHandler(
'shutdown',
'system',
'_elgg_save_autoload_cache', 1000);
116 $events->registerHandler(
'upgrade',
'all',
'_elgg_delete_autoload_cache');
_elgg_load_autoload_cache()
Load cached data into the autoload system.
elgg_get_class_loader()
Get Elgg's class loader.
elgg_register_class($class, $location)
Register a classname to a file.
_elgg_create_service_provider()
Sets up autoloading and creates the service provider (DIC)
elgg_get_system_cache()
Returns an object suitable for caching system information.
if(isset($vars['id'])) $class
_elgg_save_autoload_cache()
Save the autoload system cache.
_elgg_delete_autoload_cache()
Delete the autoload system cache.
elgg_register_classes($dir)
Register a directory tree for autoloading classes/interfaces/traits.