class Package implements PackageInterface
Basic package that adds a version to asset URLs.
__construct(VersionStrategyInterface $versionStrategy, ContextInterface $context = null) | ||
string | getVersion(string $path) Returns the asset version for an asset. | |
string | getUrl(string $path) Returns an absolute or root-relative public path. | |
ContextInterface | getContext() | |
VersionStrategyInterface | getVersionStrategy() | |
isAbsoluteUrl($url) |
VersionStrategyInterface | $versionStrategy | |
ContextInterface | $context |
Returns the asset version for an asset.
string | $path | A path |
string | The version string |
Returns an absolute or root-relative public path.
string | $path | A path |
string | The public path |
ContextInterface |
VersionStrategyInterface |
$url |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Asset/Package.html