public function addAsset($name, $path)
    {
        if (!is_file($path)) {
            throw new \RuntimeException('The asset file "' . $path . '" does not exist.');
        }
        $this->assets[$name] = $path;
    }
public function addAsset($name, $path)
    {
        if (!is_file($path)) {
            throw new \RuntimeException('The asset file "' . $path . '" does not exist.');
        }
        $this->assets[$name] = $path;
    }
public function addAsset ( $ name , $ path ) { if ( ! is_file ( $ path ) ) { throw new \ RuntimeException ( 'The asset file "' . $ path . '" does not exist.' ) ; } $ this -> assets [ $ name ] = $ path ; }
Adds an asset.

@param string $name The name of the asset.
@param string $path The path to the asset.
@throws \RuntimeException
Adds an asset .