static function xautoload_InjectedAPI_hookXautoload::create in X Autoload 7.5
Parameters
ExtendedClassFinderInterface $finder: The class finder object.
string $localDirectory:
Return value
self
5 calls to xautoload_InjectedAPI_hookXautoload::create()
- HookXautoload::runHookXautoload in src/
Phases/ HookXautoload.php - Runs hook_xautoload() on all enabled modules.
- HookXautoloadEarly::runHookXautoload in src/
Phases/ HookXautoloadEarly.php - Runs hook_xautoload() on all enabled modules.
- HookXautoloadEarly::welcomeNewExtension in src/
Phases/ HookXautoloadEarly.php - New extensions were enabled/installed.
- LibrariesFinderPlugin::registerAllLibraries in src/
Libraries/ LibrariesFinderPlugin.php - Registers all libraries that have an "xautoload" setting.
- LibraryCacheMissObserver::cacheMiss in src/
Libraries/ LibraryCacheMissObserver.php - Executes the operation.
File
- legacy/
lib/ InjectedAPI/ hookXautoload.php, line 30
Class
- xautoload_InjectedAPI_hookXautoload
- An instance of this class is passed around to implementations of hook_xautoload(). It acts as a wrapper around the ClassFinder, to register stuff.
Code
static function create($finder, $localDirectory) {
$adapter = ClassFinderAdapter::create($finder);
return new self($adapter, $localDirectory);
}