3 class: Drupal\libraries\ExternalLibrary\LibraryManager
5 - '@libraries.definition.discovery'
6 - '@plugin.manager.libraries.library_type'
8 # By default Libraries API downloads library definitions from a number of
9 # remote library registries, the canonical one being
10 # https://www.drupal.org/project/libraries_registry, and stores them locally
11 # in the public://library-definitions directory. The URLs of the remote
12 # library registries and the local base path can be configured. The remote
13 # fetching can also be disabled altogether.
14 libraries.definition.discovery:
15 class: Drupal\libraries\ExternalLibrary\Definition\DefinitionDiscoveryInterface
16 factory: 'libraries.definition.discovery.factory:get'
17 libraries.definition.discovery.factory:
18 class: Drupal\libraries\ExternalLibrary\Definition\DefinitionDiscoveryFactory
21 - '@serialization.json'
23 - '@serialization.json'
24 # If you instead want to check your library definitions into version control
25 # and use YAML for them instead of JSON, you can place the following service
26 # definition in your site's services.yml file:
27 # libraries.definition.discovery:
28 # class: Drupal\libraries\ExternalLibrary\Definition\FileDefinitionDiscovery
30 # - '@serialization.yaml'
31 # # Replace this with the location of the library definitions in your setup.
32 # - '../library-definitions'
34 plugin.manager.libraries.library_type:
35 class: Drupal\libraries\ExternalLibrary\Type\LibraryTypeFactory
36 parent: default_plugin_manager
37 plugin.manager.libraries.locator:
38 class: Drupal\libraries\ExternalLibrary\Local\LocatorManager
39 parent: default_plugin_manager
40 plugin.manager.libraries.version_detector:
41 class: Drupal\libraries\ExternalLibrary\Version\VersionDetectorManager
42 parent: default_plugin_manager
44 libraries.config_subscriber:
45 class: Drupal\libraries\Config\LibrariesConfigSubscriber
46 arguments: ['@service_container']
48 - { name: event_subscriber }
50 libraries.php_file_loader:
51 class: Drupal\libraries\ExternalLibrary\PhpFile\PhpRequireLoader
53 stream_wrapper.library_definitions:
54 class: Drupal\libraries\StreamWrapper\LibraryDefinitionsStream
55 arguments: ['@config.factory']
57 - { name: stream_wrapper, scheme: 'library-definitions' }
58 stream_wrapper.asset_libraries:
59 class: Drupal\libraries\StreamWrapper\AssetLibrariesStream
61 - { name: stream_wrapper, scheme: 'asset' }
62 stream_wrapper.php_file_libraries:
63 class: Drupal\libraries\StreamWrapper\PhpFileLibrariesStream
65 - { name: stream_wrapper, scheme: 'php-file' }
69 class: Drupal\Core\Cache\CacheBackendInterface
72 factory: cache_factory:get