Symfony\Component\Templating\Helper\CoreAssetsHelper::getUrl
Returns the public path.
Absolute paths (i.e. http://...) are returned unmodified.
Signature
public function getUrl(string
$path,
[string
$packageName = null] )
Parameters
$path
— string- A public path
$packageName
— string- The name of the asset package to use
Returns
- string
- A public path which takes into account the base path and URL path