for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Elgg autoloader
* Facilities for class/interface/trait autoloading.
*
* @package Elgg.Core
* @subpackage Autoloader
*/
* Get the global service provider
* @param \Elgg\Di\ServiceProvider $services Elgg service provider. This must be set by the application.
* @return \Elgg\Di\ServiceProvider
* @access private
function _elgg_services(\Elgg\Di\ServiceProvider $services = null) {
static $inst;
if ($services !== null) {
$inst = $services;
}
return $inst;
* Get the Elgg config service
* @return \Elgg\Config
function _elgg_config() {
return _elgg_services()->config;
* Delete the autoload system cache
function _elgg_delete_autoload_cache() {
_elgg_services()->autoloadManager->deleteCache();
return function(\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) {
$hooks
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$events->registerHandler('upgrade', 'all', '_elgg_delete_autoload_cache', 600);
};
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.