Extends
lithium\core\StaticObject
Perform library location for an array of paths or a single string-based path.
Parameters
- string|array $paths Paths that Libraries::locate() will utilize.
- string $name The name of the class to be located.
Returns
string Fully-namespaced path to the class, or null if not found.Source
protected static function _locate($paths, $name) {
foreach ((array) $paths as $path) {
if ($class = Libraries::locate($path, $name)) {
return $class;
}
}
return null;
}