Bolt\Asset\UnprefixedPathPackage::__construct PHP Method

__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
    public function __construct($prefix, $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context)
    {
        parent::__construct($basePath, $versionStrategy, $context);
        $this->prefix = ltrim($prefix, '/');
    }