Asset\Package (Component\Templating)
Symfony\Component\Templating\Asset\Package
class Package implements PackageInterface
The basic package will add a version to asset URLs.
Methods
__construct(string $version = null, string $format = '') Constructor. | ||
string | getVersion() Returns the asset package version. | |
string | getUrl(string $path, string|bool|null $version = null) Returns an absolute or root-relative public path. |
Details
public __construct(string $version = null, string $format = '')
Constructor.
public string getVersion()
Returns the asset package version.
public string getUrl(string $path, string|bool|null $version = null)
Returns an absolute or root-relative public path.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Templating/Asset/Package.html