mediatekformation

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

Interfaces, Classes, Traits and Enums

PackageInterface
Asset package interface.

Table of Contents

$context  : mixed
$versionStrategy  : mixed
__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(mixed $path) : string
Parameters
$path : mixed

A path

Return values
string

The public 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

isAbsoluteUrl()

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

Search results