function xautoload_InjectedAPI_hookXautoload::prefixPlugin in X Autoload 7.3
Same name and namespace in other branches
- 7.5 legacy/lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixPlugin()
- 7.2 lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixPlugin()
- 7.4 legacy/lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixPlugin()
Register a prefix plugin object
Parameters
string $prefix:
xautoload_FinderPlugin_Interface $plugin:
File
- lib/
InjectedAPI/ hookXautoload.php, line 137
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
function prefixPlugin($prefix, $plugin) {
$this->finder
->registerPrefixPlugin($prefix, $plugin);
}