src/Route/AssetScheme.php
public function find($asset)
    {
        $asset = trim($asset, '/');
        $namespace = '/';
        while (true) {
            $file = $this->findIn($asset, $namespace);
            if (isset($file)) {
                return $file;
            }
            $pos = strpos($asset, '/');
            if ($pos === false) {
                break;
            }
            $namespace = rtrim($namespace, '/') . '/' . substr($asset, 0, $pos);
            $asset = substr($asset, $pos + 1);
        }
        return null;
    }
public function find($asset)
    {
        $asset = trim($asset, '/');
        $namespace = '/';
        while (true) {
            $file = $this->findIn($asset, $namespace);
            if (isset($file)) {
                return $file;
            }
            $pos = strpos($asset, '/');
            if ($pos === false) {
                break;
            }
            $namespace = rtrim($namespace, '/') . '/' . substr($asset, 0, $pos);
            $asset = substr($asset, $pos + 1);
        }
        return null;
    }
public function find ( $ asset ) { $ asset = trim ( $ asset , '/' ) ; $ namespace = '/' ; while ( true ) { $ file = $ this -> findIn ( $ asset , $ namespace ) ; if ( isset ( $ file ) ) { return $ file ; } $ pos = strpos ( $ asset , '/' ) ; if ( $ pos === false ) { break ; } $ namespace = rtrim ( $ namespace , '/' ) . '/' . substr ( $ asset , 0 , $ pos ) ; $ asset = substr ( $ asset , $ pos + 1 ) ; } return null ; }
Find an asset.

@param string $asset Asset name.
@return string|null Asset path on server, or null if not found.
Find an asset .