lithium\core\Libraries::map()
Associtates fully-namespaced class names to their corresponding paths on the file system.
Once a class is associtated to a path using lithium\core\Libraries::map()
the PSR-0 loader or custom class loader setted using the transform
or loader
option of lithium\core\Libraries::add()
are ignored and the associtated path
is used instead.
Parameters
-
array
$classes
An array of fully-namespaced class names (as keys) and their correponding file's paths (as values).
Returns
voidSource
public static function map(array $classes) {
foreach ($classes as $key => $value) {
unset(static::$_cachedPaths[$key]);
}
static::$_map = array_merge(static::$_map, $classes);
}