lithium\core\Adaptable::_locate PHP Method

_locate() protected static method

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