Further modules included.
[yaffs-website] / web / modules / contrib / libraries / libraries.services.yml
1 services:
2   libraries.manager:
3     class: Drupal\libraries\ExternalLibrary\LibraryManager
4     arguments:
5       - '@libraries.definition.discovery'
6       - '@plugin.manager.libraries.library_type'
7
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
19     arguments:
20       - '@config.factory'
21       - '@serialization.json'
22       - '@http_client'
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
29   #   arguments:
30   #     - '@serialization.yaml'
31   #     # Replace this with the location of the library definitions in your setup.
32   #     - '../library-definitions'
33
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
43
44   libraries.config_subscriber:
45     class: Drupal\libraries\Config\LibrariesConfigSubscriber
46     arguments: ['@service_container']
47     tags:
48       - { name: event_subscriber }
49
50   libraries.php_file_loader:
51     class: Drupal\libraries\ExternalLibrary\PhpFile\PhpRequireLoader
52
53   stream_wrapper.library_definitions:
54     class: Drupal\libraries\StreamWrapper\LibraryDefinitionsStream
55     arguments: ['@config.factory']
56     tags:
57       - { name: stream_wrapper, scheme: 'library-definitions' }
58   stream_wrapper.asset_libraries:
59     class: Drupal\libraries\StreamWrapper\AssetLibrariesStream
60     tags:
61       - { name: stream_wrapper, scheme: 'asset' }
62   stream_wrapper.php_file_libraries:
63     class: Drupal\libraries\StreamWrapper\PhpFileLibrariesStream
64     tags:
65       - { name: stream_wrapper, scheme: 'php-file' }
66
67
68   cache.libraries:
69     class: Drupal\Core\Cache\CacheBackendInterface
70     tags:
71       - { name: cache.bin }
72     factory: cache_factory:get
73     arguments: [library]