public function requireAsset($asset, $type = null)
    {
        return null !== $this->manager && $this->manager->has($asset, $type)
            ? $this->manager->getPath($asset, $type)
            : $asset;
    }
public function requireAsset($asset, $type = null)
    {
        return null !== $this->manager && $this->manager->has($asset, $type)
            ? $this->manager->getPath($asset, $type)
            : $asset;
    }
public function requireAsset ( $ asset , $ type = null ) { return null !== $ this -> manager && $ this -> manager -> has ( $ asset , $ type ) ? $ this -> manager -> getPath ( $ asset , $ type ) : $ asset ; }
Get the target path of the require asset.

@param string      $asset The require asset name
@param null|string $type  The asset type

@return string
Get the target path of the require asset .