public function locateAsset($asset)
    {
        if (substr($asset, 0, strlen($this->prefix)) === $this->prefix) {
            $locatedAsset = $this->resolveAlias($asset);
        } else {
            $locatedAsset = $asset;
        }

        if (!file_exists($locatedAsset)) {
            throw new AssetNotFoundException(sprintf('Asset not found (%s, resolved to %s)', $asset, $locatedAsset));
        }

        return $locatedAsset;
    }
public function locateAsset($asset)
    {
        if (substr($asset, 0, strlen($this->prefix)) === $this->prefix) {
            $locatedAsset = $this->resolveAlias($asset);
        } else {
            $locatedAsset = $asset;
        }

        if (!file_exists($locatedAsset)) {
            throw new AssetNotFoundException(sprintf('Asset not found (%s, resolved to %s)', $asset, $locatedAsset));
        }

        return $locatedAsset;
    }
public function locateAsset ( $ asset ) { if ( substr ( $ asset , 0 , strlen ( $ this -> prefix ) ) === $ this -> prefix ) { $ locatedAsset = $ this -> resolveAlias ( $ asset ) ; } else { $ locatedAsset = $ asset ; } if ( ! file_exists ( $ locatedAsset ) ) { throw new AssetNotFoundException ( sprintf ( 'Asset not found (%s, resolved to %s)' , $ asset , $ locatedAsset ) ) ; } return $ locatedAsset ; }
Locates asset - resolves alias if provided. Does not support assets with loaders.

@param string $asset path of an asset, possibly with alias prefix
@return string resolved asset path
@throws AssetNotFoundException if asset was not found

@api
Locates asset - resolves alias if provided . Does not support assets with loaders .