platform/api/symfony/Component/Asset/PathPackage.yaml

53 lines
1.7 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: PathPackage
class_comment: '# * 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.
# *
# * @author Fabien Potencier <fabien@symfony.com>'
dependencies:
- name: ContextInterface
type: class
source: Symfony\Component\Asset\Context\ContextInterface
- name: VersionStrategyInterface
type: class
source: Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: basePath
- name: versionStrategy
- name: context
default: 'null'
comment: "# * Package that adds a base path to asset URLs in addition to a version.\n\
# *\n# * In addition to the provided base path, this package also automatically\n\
# * prepends the current request base path if a Context is available to\n# * allow\
\ a website to be hosted easily under any given path under the Web\n# * Server\
\ root directory.\n# *\n# * @author Fabien Potencier <fabien@symfony.com>\n# */\n\
# class PathPackage extends Package\n# {\n# private string $basePath;\n# \n# /**\n\
# * @param string $basePath The base path to be prepended to relative paths"
- name: getUrl
visibility: public
parameters:
- name: path
comment: null
- name: getBasePath
visibility: public
parameters: []
comment: '# * Returns the base path.'
traits:
- Symfony\Component\Asset\Context\ContextInterface
- Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface
interfaces: []