PathPackage

PathPackage

class PathPackage extends 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.

Methods

__construct(string $basePath, VersionStrategyInterface $versionStrategy, ContextInterface登录查看完整内容