-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
patternkit.services.yml
84 lines (84 loc) · 3.96 KB
/
patternkit.services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
logger.channel.patternkit:
parent: logger.channel_base
arguments: ['patternkit']
path_processor.patterns:
class: Drupal\patternkit\PathProcessor\PathProcessorPatterns
tags:
- { name: path_processor_inbound, priority: 200 }
patternkit.asset.library:
class: Drupal\patternkit\Asset\Library
arguments: ['@cache.discovery', '@config.factory', '@lock', '@patternkit.pattern.discovery', '@patternkit.library.namespace_resolver']
deprecated: 'The "%service_id%" service is deprecated. Use "patternkit.library.namespace_resolver" or "patternkit.pattern.discovery" instead.'
patternkit.asset.library.parser.base:
abstract: true
arguments: [ '@serialization.json', '%app.root%', '@module_handler', '@theme.manager', '@stream_wrapper_manager', '@library.libraries_directory_file_finder', '@extension.path.resolver' ]
patternkit.asset.library.parser.file:
parent: patternkit.asset.library.parser.base
class: Drupal\patternkit\Asset\PatternLibraryParser\FilePatternLibraryParser
patternkit.asset.library.parser.json:
parent: patternkit.asset.library.parser.base
class: Drupal\patternkit\Asset\PatternLibraryParser\JSONPatternLibraryParser
patternkit.asset.library.parser.twig:
parent: patternkit.asset.library.parser.base
class: Drupal\patternkit\Asset\PatternLibraryParser\TwigPatternLibraryParser
patternkit.library.namespace_resolver:
class: Drupal\patternkit\Asset\LibraryNamespaceResolver
arguments: [ '@service_container', '@library.discovery', '@cache.discovery', '@lock' ]
tags:
- { name: needs_destruction }
patternkit.pattern.discovery:
class: Drupal\patternkit\Asset\PatternDiscovery
arguments: [ '@patternkit.pattern.discovery.collector', '@patternkit.library.namespace_resolver']
patternkit.pattern.discovery.collector:
class: Drupal\patternkit\Asset\PatternDiscoveryCollector
arguments: [ '@cache.discovery', '@lock', '@patternkit.library.namespace_resolver', '@plugin.manager.library.pattern', '@logger.channel.patternkit']
tags:
- { name: needs_destruction }
plugin.manager.library.pattern:
class: Drupal\patternkit\PatternLibraryPluginManager
arguments: ['@container.namespaces', '@cache.discovery', '@module_handler', '@theme_handler']
stream_wrapper.library:
class: Drupal\patternkit\StreamWrapper\LibraryStream
tags:
- { name: stream_wrapper, scheme: library }
stream_wrapper.patternkit:
class: Drupal\patternkit\StreamWrapper\PatternkitStream
tags:
- { name: stream_wrapper, scheme: patternkit }
twig.loader.patternlibrary:
class: Drupal\patternkit\Loader\PatternLibraryLoader
# We use '.' instead of '@app.root' as the path for non-namespaced template
# files so that they match the relative paths of templates loaded via the
# theme registry or via Twig namespaces.
arguments: ['.', '@logger.channel.patternkit', '@patternkit.library.namespace_resolver']
tags:
- { name: twig.loader, priority: 100 }
patternkit.translate_layout_builder_block:
class: Drupal\patternkit\Routing\PatternkitTranslateBlockFormRouteSubscriber
tags:
- { name: event_subscriber }
plugin.manager.pattern_field_processor:
class: Drupal\patternkit\PatternFieldProcessorPluginManager
arguments:
- '@container.namespaces'
- '@cache.discovery'
- '@module_handler'
- '@serialization.json'
- '@patternkit.schema.schema_walker_factory'
- '@logger.channel.patternkit'
patternkit.schema.schema_factory:
class: Drupal\patternkit\Schema\SchemaFactory
arguments:
- '@patternkit.schema.ref_provider'
patternkit.schema.ref_provider:
class: Drupal\patternkit\Schema\PatternkitRefProvider
arguments:
- '@patternkit.pattern.discovery'
- '@patternkit.library.namespace_resolver'
public: false
patternkit.schema.schema_walker_factory:
class: Drupal\patternkit\Schema\SchemaWalkerFactory
arguments:
- '@patternkit.schema.schema_factory'
public: false