PathPackage deprecated
class PathPackage extends PathPackage
deprecated
The path packages adds a version and a base path to asset URLs.
Methods
string
getUrl(string $path, string|bool|null $version = null)
Returns an absolute or root-relative public path.
from PathPackage
Details
at line line 35
__construct(Request $request, string $version = null, string $format = null)
Constructor.
in Package at line line 43
string
getVersion()
Returns the asset package version.
in PathPackage at line line 52
string
getUrl(string $path, string|bool|null $version = null)
Returns an absolute or root-relative public path.
in PathPackage at line line 73
string
getBasePath()
Returns the base path.