Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / drupalmoduleupgrader.services.yml
1 services:
2   # Indexers are plugins responsible for gathering information about a target
3   # module. Things like:
4   #
5   # - Which classes are defined, and which files they reside in
6   # - Which functions are defined, and where
7   # - The tests, if any, and what type of tests they are
8   # - Which hooks the module implements
9   # - ...etc.
10   #
11   # Indexers can index any information about a target module, and they store it
12   # in an indexer (provided by the module_indexer service defined above).
13   plugin.manager.drupalmoduleupgrader.indexer:
14     class: Drupal\Core\Plugin\DefaultPluginManager
15     arguments:
16       - Plugin/DMU/Indexer
17       - '@container.namespaces'
18       - '@module_handler'
19       - Drupal\drupalmoduleupgrader\IndexerInterface
20       - Drupal\drupalmoduleupgrader\Annotation\Indexer
21
22   # Analyzers scan a module, determine what problems exist, then flag issues
23   # containing a summary, a list of problem points (actual line numbers and
24   # file names in the scanned module), with links with documentation explaining
25   # what needs to be changed. As the name implies, analyzers are read-only and
26   # do not modify the target module in any way, shape, or form.
27   #
28   # Analyzers are invoked after all indexers have been run, so they can and should
29   # use the information in the index as needed.
30   plugin.manager.drupalmoduleupgrader.analyzer:
31     class: Drupal\Core\Plugin\DefaultPluginManager
32     arguments:
33       - Plugin/DMU/Analyzer
34       - '@container.namespaces'
35       - '@module_handler'
36       - Drupal\drupalmoduleupgrader\AnalyzerInterface
37       - Drupal\drupalmoduleupgrader\Annotation\Analyzer
38
39   # Converters are DEPRECATED by fixers and should not be used or extended.
40   plugin.manager.drupalmoduleupgrader.converter:
41     class: Drupal\Core\Plugin\DefaultPluginManager
42     arguments:
43       - Plugin/DMU/Converter
44       - '@container.namespaces'
45       - '@module_handler'
46       - Drupal\drupalmoduleupgrader\ConverterInterface
47       - Drupal\drupalmoduleupgrader\Annotation\Converter
48
49   # Fixers perform small, isolated changes to PHP code, using Pharborist.
50   # They're the same idea as PHP_CodeSniffer fixer classes, except that they
51   # have the full power of Drupal, DMU, and Pharborist behind them. Kind of
52   # a "you and what army?" situation, except fixers are on the side of the
53   # mighty! :)
54   plugin.manager.drupalmoduleupgrader.fixer:
55     class: Drupal\Core\Plugin\DefaultPluginManager
56     arguments:
57       - Plugin/DMU/Fixer
58       - '@container.namespaces'
59       - '@module_handler'
60       - Drupal\drupalmoduleupgrader\FixerInterface
61       - Drupal\drupalmoduleupgrader\Annotation\Fixer
62
63   # Parametric rewriters are intelligent search-and-replace plugins that act
64   # on complete functions. Given one of the function's parameters and its type
65   # (which must be known ahead of time), the rewriter will alter the function
66   # so that it's calling the parameter's correct getters and setters for its
67   # various properties. Essentially, they're a type-aware search and replace.
68   plugin.manager.drupalmoduleupgrader.rewriter:
69     class: Drupal\Core\Plugin\DefaultPluginManager
70     arguments:
71       - Plugin/DMU/Rewriter
72       - '@container.namespaces'
73       - '@module_handler'
74       - Drupal\drupalmoduleupgrader\RewriterInterface
75       - Drupal\drupalmoduleupgrader\Annotation\Rewriter
76
77   plugin.manager.drupalmoduleupgrader.route:
78     class: Drupal\Core\Plugin\DefaultPluginManager
79     arguments:
80       - Plugin/DMU/Routing
81       - '@container.namespaces'
82       - '@module_handler'
83       - Drupal\drupalmoduleupgrader\Routing\RouteConverterInterface
84       - Drupal\drupalmoduleupgrader\Annotation\Converter
85
86   drupalmoduleupgrader.link_binding:
87     class: Drupal\drupalmoduleupgrader\Routing\LinkBinding\LinkBindingFactory
88     arguments:
89       - '@plugin.manager.menu.link'
90
91   drupalmoduleupgrader.form_converter:
92     class: Drupal\drupalmoduleupgrader\Utility\FormConverterFactory
93     arguments:
94       - '@string_translation'
95       - '@plugin.manager.drupalmoduleupgrader.rewriter'