lithium\core\Libraries::remove()
Removes a registered library, and unregister's the library's autoloader, if it has one.
Parameters
-
mixed
$nameA string or array of library names indicating the libraries you wish to remove, i.e.
'app'or'lithium'. This can also be used to unload plugins by name.
Source
public static function remove($name) {
foreach ((array) $name as $library) {
if (isset(static::$_configurations[$library])) {
if (static::$_configurations[$library]['loader']) {
spl_autoload_unregister(static::$_configurations[$library]['loader']);
}
unset(static::$_configurations[$library]);
}
}
}