PHP Class Bolt\Asset\UnprefixedPathPackage

Author: Carson Full ([email protected])
Inheritance: extends Symfony\Component\Asset\PathPackage
Show file Open project: bolt/bolt

Public Methods

Method Description
__construct ( string $prefix, string $basePath, Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface $versionStrategy, Symfony\Component\Asset\Context\ContextInterface $context ) Constructor.
getUrl ( $path )
getVersion ( $path )

Protected Methods

Method Description
removePrefix ( $path )

Method Details

__construct() public method

Constructor.
public __construct ( string $prefix, string $basePath, Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface $versionStrategy, Symfony\Component\Asset\Context\ContextInterface $context )
$prefix string A prefix to remove from path (before base path is applied).
$basePath string The base path to be prepended to relative paths
$versionStrategy Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface The version strategy
$context Symfony\Component\Asset\Context\ContextInterface The request context

getUrl() public method

public getUrl ( $path )

getVersion() public method

public getVersion ( $path )

removePrefix() protected method

protected removePrefix ( $path )