class PathPackage extends Package
The path packages adds a version and a base path to asset URLs.
__construct(string $basePath = null, string $version = null, string $format = null) Constructor. | ||
string | getVersion() Returns the asset package version. | from Package |
string | getUrl(string $path, string|bool|null $version = null) Returns an absolute or root-relative public path. | |
string | getBasePath() Returns the base path. |
Constructor.
Returns the asset package version.
Returns an absolute or root-relative public path.
Returns the base path.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Templating/Asset/PathPackage.html