You are here

drupalmoduleupgrader.services.yml in Drupal 7 to 8/9 Module Upgrader 8

File

drupalmoduleupgrader.services.yml
View source
  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. # Analyzers scan a module, determine what problems exist, then flag issues
  22. # containing a summary, a list of problem points (actual line numbers and
  23. # file names in the scanned module), with links with documentation explaining
  24. # what needs to be changed. As the name implies, analyzers are read-only and
  25. # do not modify the target module in any way, shape, or form.
  26. #
  27. # Analyzers are invoked after all indexers have been run, so they can and should
  28. # use the information in the index as needed.
  29. plugin.manager.drupalmoduleupgrader.analyzer:
  30. class: Drupal\Core\Plugin\DefaultPluginManager
  31. arguments:
  32. - Plugin/DMU/Analyzer
  33. - '@container.namespaces'
  34. - '@module_handler'
  35. - Drupal\drupalmoduleupgrader\AnalyzerInterface
  36. - Drupal\drupalmoduleupgrader\Annotation\Analyzer
  37. # Converters are DEPRECATED by fixers and should not be used or extended.
  38. plugin.manager.drupalmoduleupgrader.converter:
  39. class: Drupal\Core\Plugin\DefaultPluginManager
  40. arguments:
  41. - Plugin/DMU/Converter
  42. - '@container.namespaces'
  43. - '@module_handler'
  44. - Drupal\drupalmoduleupgrader\ConverterInterface
  45. - Drupal\drupalmoduleupgrader\Annotation\Converter
  46. # Fixers perform small, isolated changes to PHP code, using Pharborist.
  47. # They're the same idea as PHP_CodeSniffer fixer classes, except that they
  48. # have the full power of Drupal, DMU, and Pharborist behind them. Kind of
  49. # a "you and what army?" situation, except fixers are on the side of the
  50. # mighty! :)
  51. plugin.manager.drupalmoduleupgrader.fixer:
  52. class: Drupal\Core\Plugin\DefaultPluginManager
  53. arguments:
  54. - Plugin/DMU/Fixer
  55. - '@container.namespaces'
  56. - '@module_handler'
  57. - Drupal\drupalmoduleupgrader\FixerInterface
  58. - Drupal\drupalmoduleupgrader\Annotation\Fixer
  59. # Parametric rewriters are intelligent search-and-replace plugins that act
  60. # on complete functions. Given one of the function's parameters and its type
  61. # (which must be known ahead of time), the rewriter will alter the function
  62. # so that it's calling the parameter's correct getters and setters for its
  63. # various properties. Essentially, they're a type-aware search and replace.
  64. plugin.manager.drupalmoduleupgrader.rewriter:
  65. class: Drupal\Core\Plugin\DefaultPluginManager
  66. arguments:
  67. - Plugin/DMU/Rewriter
  68. - '@container.namespaces'
  69. - '@module_handler'
  70. - Drupal\drupalmoduleupgrader\RewriterInterface
  71. - Drupal\drupalmoduleupgrader\Annotation\Rewriter
  72. plugin.manager.drupalmoduleupgrader.route:
  73. class: Drupal\Core\Plugin\DefaultPluginManager
  74. arguments:
  75. - Plugin/DMU/Routing
  76. - '@container.namespaces'
  77. - '@module_handler'
  78. - Drupal\drupalmoduleupgrader\Routing\RouteConverterInterface
  79. - Drupal\drupalmoduleupgrader\Annotation\Converter
  80. drupalmoduleupgrader.link_binding:
  81. class: Drupal\drupalmoduleupgrader\Routing\LinkBinding\LinkBindingFactory
  82. arguments:
  83. - '@plugin.manager.menu.link'
  84. drupalmoduleupgrader.form_converter:
  85. class: Drupal\drupalmoduleupgrader\Utility\FormConverterFactory
  86. arguments:
  87. - '@string_translation'
  88. - '@plugin.manager.drupalmoduleupgrader.rewriter'