mediatekformation

PathPackage extends Package
in package

Package that adds a base path to asset URLs in addition to a version.

In addition to the provided base path, this package also automatically prepends the current request base path if a Context is available to allow a website to be hosted easily under any given path under the Web Server root directory.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$basePath  : mixed
$context  : mixed
$versionStrategy  : mixed
__construct()  : mixed
getBasePath()  : string
Returns the base path.
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

getBasePath()

Returns the base path.

public getBasePath() : string
Return values
string

The base path

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