Documentation

StaticVersionStrategy
in package
implements VersionStrategyInterface

Returns the same version for all assets.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

VersionStrategyInterface
Asset version strategy interface.

Properties

$format  : string
$version  : string

Methods

__construct()  : mixed
applyVersion()  : string
Applies version to the supplied path.
getVersion()  : string
Returns the asset version for an asset.

Properties

Methods

__construct()

public __construct(string $version[, string $format = null ]) : mixed
Parameters
$version : string

Version number

$format : string = null

Url format

applyVersion()

Applies version to the supplied path.

public applyVersion(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

        
On this page

Search results