service('asset_mapper.public_assets_path_resolver'
),
abstract_arg('importmap.php path'
),
abstract_arg('vendor directory'
),
service('asset_mapper.importmap.resolver'
),
service('http_client'
),
]) ->
alias(ImportMapManager::
class, 'asset_mapper.importmap.manager'
) ->
set('asset_mapper.importmap.resolver', PackageResolver::
class) ->
args([ abstract_arg('provider'
),
tagged_locator('asset_mapper.importmap.resolver'
),
]) ->
set('asset_mapper.importmap.resolver.jsdelivr_esm', JsDelivrEsmResolver::
class) ->
args([service('http_client'
)]) ->
tag('asset_mapper.importmap.resolver',
['resolver' => ImportMapManager::PROVIDER_JSDELIVR_ESM
]) ->
set('asset_mapper.importmap.resolver.jspm', JspmResolver::
class) ->
args([service('http_client'
), ImportMapManager::PROVIDER_JSPM
]) ->
tag('asset_mapper.importmap.resolver',
['resolver' => ImportMapManager::PROVIDER_JSPM
]) ->
set('asset_mapper.importmap.resolver.jspm_system', JspmResolver::
class)