mediatekformation

Packages
in package

Helps manage asset URLs.

Tags
author

Fabien Potencier fabien@symfony.com

author

Kris Wallsmith kris@symfony.com

Table of Contents

$defaultPackage  : mixed
$packages  : mixed
__construct()  : mixed
addPackage()  : mixed
Adds a package.
getPackage()  : PackageInterface
Returns an asset package.
getUrl()  : string
Returns the public path.
getVersion()  : string
Gets the version to add to public URL.
setDefaultPackage()  : mixed

Properties

$defaultPackage

private mixed $defaultPackage

Methods

getUrl()

Returns the public path.

public getUrl(string $path[, string $packageName = null ]) : string

Absolute paths (i.e. http://...) are returned unmodified.

Parameters
$path : string

A public path

$packageName : string = null

The name of the asset package to use

Return values
string

A public path which takes into account the base path and URL path

getVersion()

Gets the version to add to public URL.

public getVersion(string $path[, string $packageName = null ]) : string
Parameters
$path : string

A public path

$packageName : string = null

A package name

Return values
string

The current version

Search results