platform/api/symfony/Component/AssetMapper/ImportMap/Resolver/PackageResolverInterface.yaml
2024-09-02 10:44:11 -07:00

59 lines
1.5 KiB
YAML

name: PackageResolverInterface
class_comment: null
dependencies:
- name: ImportMapEntry
type: class
source: Symfony\Component\AssetMapper\ImportMap\ImportMapEntry
- name: PackageRequireOptions
type: class
source: Symfony\Component\AssetMapper\ImportMap\PackageRequireOptions
properties: []
methods:
- name: resolvePackages
visibility: public
parameters:
- name: packagesToRequire
comment: '# * Grabs the URLs for the given packages and converts them to ImportMapEntry
objects.
# *
# * If "download" is specified in PackageRequireOptions, the resolved package
# * contents should be included.
# *
# * @param PackageRequireOptions[] $packagesToRequire
# *
# * @return ResolvedImportMapPackage[] The import map entries that should be added'
- name: downloadPackages
visibility: public
parameters:
- name: importMapEntries
- name: progressCallback
default: 'null'
comment: '# * Downloads the contents of the given packages.
# *
# * The returned array should be a map using the same keys as $importMapEntries.
# *
# * The dependencies are an array of module names that are imported by the package.
# *
# * @param array<string, ImportMapEntry> $importMapEntries
# *
# * @return array<string, array{content: string, dependencies: string[], extraFiles:
array<string, string>}>'
traits:
- Symfony\Component\AssetMapper\ImportMap\ImportMapEntry
- Symfony\Component\AssetMapper\ImportMap\PackageRequireOptions
interfaces: []