Class

Symfony\Component\Templating\Asset\Package

class Package implements PackageInterface

The basic package will add a version to asset URLs.

Methods

__construct(string $version = null, string $format = null)

Constructor.

string getVersion()

Returns the asset package version.

string getUrl(string $path)

Returns an absolute or root-relative public path.

Details

at line 30
public __construct(string $version = null, string $format = null)

Constructor.

Parameters

string $version The package version
string $format The format used to apply the version

at line 36
public string getVersion()

Returns the asset package version.

Return Value

string The version string

at line 41
public string getUrl(string $path)

Returns an absolute or root-relative public path.

Parameters

string $path A path

Return Value

string The public path