class CoreAssetsHelper extends Helper implements PackageInterface
deprecated
CoreAssetsHelper helps manage asset URLs.
Usage:
setCharset(string $charset) Sets the default charset. | from Helper | |
string | getCharset() Gets the default charset. | from Helper |
__construct(PackageInterface $defaultPackage, array $namedPackages = array()) Constructor. | ||
setDefaultPackage(PackageInterface $defaultPackage) Sets the default package. | ||
addPackage(string $name, PackageInterface $package) Adds an asset package to the helper. | ||
PackageInterface | getPackage(string $name = null) Returns an asset package. | |
string | getVersion(string $packageName = null) Gets the version to add to public URL. | |
string | getUrl(string $path, string $packageName = null, string|bool|null $version = null) Returns the public path. | |
string | getName() Returns the canonical name of this helper. |
Sets the default charset.
Gets the default charset.
Constructor.
Sets the default package.
Adds an asset package to the helper.
Returns an asset package.
Gets the version to add to public URL.
Returns the public path.
Absolute paths (i.e. http://...) are returned unmodified.
Returns the canonical name of this helper.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Templating/Helper/CoreAssetsHelper.html