lithium\core\Adaptable::_locate PHP Метод

_locate() защищенный статический Метод

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.
Результат 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;
    }