src/Route/AssetScheme.php
public function findIn($asset, $namespace)
    {
        if (! isset($this->paths[$namespace])) {
            return null;
        }
        foreach ($this->paths[$namespace] as $path) {
            $file = $path['path'] . $asset;
            if (is_file($file)) {
                return $file;
            }
        }
        return null;
    }
public function findIn($asset, $namespace)
    {
        if (! isset($this->paths[$namespace])) {
            return null;
        }
        foreach ($this->paths[$namespace] as $path) {
            $file = $path['path'] . $asset;
            if (is_file($file)) {
                return $file;
            }
        }
        return null;
    }
public function findIn ( $ asset , $ namespace ) { if ( ! isset ( $ this -> paths [ $ namespace ] ) ) { return null ; } foreach ( $ this -> paths [ $ namespace ] as $ path ) { $ file = $ path [ 'path' ] . $ asset ; if ( is_file ( $ file ) ) { return $ file ; } } return null ; }
Find an asset in a namsepace.

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