class Package implements PackageInterface
Basic package that adds a version to asset URLs.
Methods
__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. |
Details
__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.
Please login to continue.