Packages
class Packages
Helps manage asset URLs.
Methods
getPackage(string $name = null)
Returns an asset package.
string
getVersion(string $path, string $packageName = null)
Gets the version to add to public URL.
string
getUrl(string $path, string $packageName = null)
Returns the public path.
Details
at line line 32
__construct(PackageInterface $defaultPackage = null, array $packages = array())
at line line 46
setDefaultPackage(PackageInterface $defaultPackage)
Sets the default package.
at line line 57
addPackage(string $name, PackageInterface $package)
Adds a package.
at line line 72
PackageInterface
getPackage(string $name = null)
Returns an asset package.
at line line 97
string
getVersion(string $path, string $packageName = null)
Gets the version to add to public URL.
at line line 112
string
getUrl(string $path, string $packageName = null)
Returns the public path.
Absolute paths (i.e. http://...) are returned unmodified.