mediatekformation

StaticVersionStrategy
in package
implements VersionStrategyInterface

Returns the same version for all assets.

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes, Traits and Enums

VersionStrategyInterface
Asset version strategy interface.

Table of Contents

$format  : mixed
$version  : mixed
__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

Return values
mixed

applyVersion()

Applies version to the supplied path.

public applyVersion(mixed $path) : string
Parameters
$path : mixed

A path

Return values
string

The versionized path

getVersion()

Returns the asset version for an asset.

public getVersion(mixed $path) : string
Parameters
$path : mixed

A path

Return values
string

The version string

Search results