Documentation

Package
in package
implements PackageInterface

Basic package that adds a version to asset URLs.

Tags
author

Kris Wallsmith kris@symfony.com

author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

PackageInterface
Asset package interface.

Properties

$context  : mixed
$versionStrategy  : mixed

Methods

__construct()  : mixed
getUrl()  : string
Returns an absolute or root-relative public path.
getVersion()  : string
Returns the asset version for an asset.
getContext()  : ContextInterface
getVersionStrategy()  : VersionStrategyInterface
isAbsoluteUrl()  : bool

Properties

$versionStrategy

private mixed $versionStrategy

Methods

getUrl()

Returns an absolute or root-relative public path.

public getUrl(string $path) : string
Parameters
$path : string
Return values
string

getVersion()

Returns the asset version for an asset.

public getVersion(string $path) : string
Parameters
$path : string
Return values
string

isAbsoluteUrl()

protected isAbsoluteUrl(string $url) : bool
Parameters
$url : string
Return values
bool

        
On this page

Search results