Asset/AssetManager.php
public function get(string $path): SplFileInfo
    {
        $path = ltrim($path, '\\/');
        foreach ($this->assets as $asset) {
            if ($asset->getRelativePathname() === $path) {
                return $asset;
            }
        }
        throw new NotFoundHttpException(sprintf('Unknown asset: %s', $path));
    }
public function get(string $path): SplFileInfo
    {
        $path = ltrim($path, '\\/');
        foreach ($this->assets as $asset) {
            if ($asset->getRelativePathname() === $path) {
                return $asset;
            }
        }
        throw new NotFoundHttpException(sprintf('Unknown asset: %s', $path));
    }
public function get ( string $ path ) : SplFileInfo { $ path = ltrim ( $ path , '\\/' ) ; foreach ( $ this -> assets as $ asset ) { if ( $ asset -> getRelativePathname ( ) === $ path ) { return $ asset ; } } throw new NotFoundHttpException ( sprintf ( 'Unknown asset: %s' , $ path ) ) ; }
Get a single relative asset.

@param string $path the relative path to the asset

@return SplFileInfo
Get a single relative asset .