package_manager.services.yml

core/modules/package_manager/package_manager.services.yml

File

core/modules/package_manager/package_manager.services.yml

View source
  1. parameters:
  2. package_manager.skip_procedural_hook_scan: true
  3. services:
  4. _defaults:
  5. autoconfigure: true
  6. autowire: true
  7. # Underlying Symfony utilities for Composer Stager.
  8. Symfony\Component\Filesystem\Filesystem:
  9. public: false
  10. Symfony\Component\Process\ExecutableFinder:
  11. public: false
  12. # Basic infrastructure services for Composer Stager, overridden by us to
  13. # provide additional functionality.
  14. Drupal\package_manager\ExecutableFinder:
  15. public: false
  16. calls:
  17. - [setLogger, ['@logger.channel.package_manager']]
  18. decorates: 'PhpTuf\ComposerStager\API\Finder\Service\ExecutableFinderInterface'
  19. Drupal\package_manager\TranslatableStringFactory:
  20. public: false
  21. decorates: 'PhpTuf\ComposerStager\API\Translation\Factory\TranslatableFactoryInterface'
  22. Drupal\package_manager\LoggingBeginner:
  23. public: false
  24. decorates: 'PhpTuf\ComposerStager\API\Core\BeginnerInterface'
  25. Drupal\package_manager\LoggingStager:
  26. public: false
  27. decorates: 'PhpTuf\ComposerStager\API\Core\StagerInterface'
  28. Drupal\package_manager\LoggingCommitter:
  29. public: false
  30. decorates: 'PhpTuf\ComposerStager\API\Core\CommitterInterface'
  31. logger.channel.package_manager:
  32. parent: logger.channel_base
  33. arguments:
  34. - 'package_manager'
  35. logger.channel.package_manager_change_log:
  36. parent: logger.channel_base
  37. arguments:
  38. - 'package_manager_change_log'
  39. # Services provided to Drupal by Package Manager.
  40. Drupal\package_manager\PathLocator:
  41. arguments:
  42. $appRoot: '%app.root%'
  43. Drupal\package_manager\FailureMarker: {}
  44. Drupal\package_manager\EventSubscriber\UpdateDataSubscriber: {}
  45. Drupal\package_manager\EventSubscriber\ChangeLogger:
  46. calls:
  47. - [setLogger, ['@logger.channel.package_manager_change_log']]
  48. Drupal\package_manager\EventSubscriber\DirectWriteSubscriber: {}
  49. Drupal\package_manager\ComposerInspector: {}
  50. # Validators.
  51. Drupal\package_manager\Validator\EnvironmentSupportValidator: {}
  52. Drupal\package_manager\Validator\ComposerValidator: {}
  53. Drupal\package_manager\Validator\DiskSpaceValidator: {}
  54. Drupal\package_manager\Validator\PendingUpdatesValidator:
  55. arguments:
  56. - '%app.root%'
  57. - '@update.post_update_registry'
  58. autowire: false
  59. Drupal\package_manager\Validator\LockFileValidator:
  60. arguments:
  61. $keyValueFactory: '@keyvalue'
  62. Drupal\package_manager\Validator\WritableFileSystemValidator: {}
  63. Drupal\package_manager\Validator\ComposerMinimumStabilityValidator: {}
  64. Drupal\package_manager\Validator\MultisiteValidator: {}
  65. Drupal\package_manager\Validator\SymlinkValidator: {}
  66. Drupal\package_manager\Validator\DuplicateInfoFileValidator: {}
  67. Drupal\package_manager\Validator\EnabledExtensionsValidator: {}
  68. Drupal\package_manager\Validator\OverwriteExistingPackagesValidator: {}
  69. Drupal\package_manager\Validator\AllowedScaffoldPackagesValidator: {}
  70. Drupal\package_manager\Validator\SandboxDatabaseUpdatesValidator: {}
  71. Drupal\package_manager\PathExcluder\TestSiteExcluder: {}
  72. Drupal\package_manager\PathExcluder\VendorHardeningExcluder: {}
  73. Drupal\package_manager\PathExcluder\SiteFilesExcluder:
  74. arguments:
  75. $wrappers: [public, private, assets]
  76. Drupal\package_manager\PathExcluder\SqliteDatabaseExcluder: {}
  77. Drupal\package_manager\PathExcluder\GitExcluder: {}
  78. Drupal\package_manager\PathExcluder\UnknownPathExcluder: {}
  79. Drupal\package_manager\PathExcluder\SiteConfigurationExcluder:
  80. arguments:
  81. $sitePath: '%site.path%'
  82. Drupal\package_manager\PathExcluder\NodeModulesExcluder: {}
  83. Drupal\package_manager\PackageManagerUninstallValidator:
  84. arguments:
  85. $eventDispatcher: '@event_dispatcher'
  86. Drupal\package_manager\Validator\SettingsValidator: {}
  87. Drupal\package_manager\Validator\RsyncValidator: {}
  88. Drupal\package_manager\Validator\ComposerPluginsValidator: {}
  89. Drupal\package_manager\Validator\ComposerPatchesValidator: {}
  90. Drupal\package_manager\Validator\BaseRequirementsFulfilledValidator: {}
  91. Drupal\package_manager\Validator\SupportedReleaseValidator: {}
  92. Drupal\package_manager\Validator\SandboxDirectoryValidator: {}
  93. Drupal\package_manager\Validator\PhpExtensionsValidator: {}
  94. Drupal\package_manager\Validator\PhpTufValidator:
  95. arguments:
  96. $repositories:
  97. - 'https://packages.drupal.org/8'
  98. Drupal\package_manager\PackageManagerUpdateProcessor:
  99. arguments:
  100. # @todo Autowire $update_fetcher when https://drupal.org/i/3325557 lands.
  101. $update_fetcher: '@update.fetcher'
  102. $key_value_factory: '@keyvalue'
  103. $key_value_expirable_factory: '@keyvalue.expirable'
  104. # Services from php-tuf/composer-stager package.
  105. PhpTuf\ComposerStager\API\Core\BeginnerInterface:
  106. class: PhpTuf\ComposerStager\Internal\Core\Beginner
  107. PhpTuf\ComposerStager\API\Core\CleanerInterface:
  108. class: PhpTuf\ComposerStager\Internal\Core\Cleaner
  109. PhpTuf\ComposerStager\API\Core\CommitterInterface:
  110. class: PhpTuf\ComposerStager\Internal\Core\Committer
  111. PhpTuf\ComposerStager\API\Core\StagerInterface:
  112. class: PhpTuf\ComposerStager\Internal\Core\Stager
  113. PhpTuf\ComposerStager\API\Environment\Service\EnvironmentInterface:
  114. class: PhpTuf\ComposerStager\Internal\Environment\Service\Environment
  115. PhpTuf\ComposerStager\API\FileSyncer\Service\FileSyncerInterface:
  116. class: PhpTuf\ComposerStager\Internal\FileSyncer\Service\FileSyncer
  117. PhpTuf\ComposerStager\API\Filesystem\Service\FilesystemInterface:
  118. class: PhpTuf\ComposerStager\Internal\Filesystem\Service\Filesystem
  119. PhpTuf\ComposerStager\API\Finder\Service\ExecutableFinderInterface:
  120. class: PhpTuf\ComposerStager\Internal\Finder\Service\ExecutableFinder
  121. PhpTuf\ComposerStager\API\Finder\Service\FileFinderInterface:
  122. class: PhpTuf\ComposerStager\Internal\Finder\Service\FileFinder
  123. PhpTuf\ComposerStager\API\Path\Factory\PathFactoryInterface:
  124. class: PhpTuf\ComposerStager\Internal\Path\Factory\PathFactory
  125. PhpTuf\ComposerStager\API\Path\Factory\PathListFactoryInterface:
  126. class: PhpTuf\ComposerStager\Internal\Path\Factory\PathListFactory
  127. PhpTuf\ComposerStager\API\Precondition\Service\ActiveAndStagingDirsAreDifferentInterface:
  128. class: PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveAndStagingDirsAreDifferent
  129. PhpTuf\ComposerStager\API\Precondition\Service\ActiveDirExistsInterface:
  130. class: PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirExists
  131. PhpTuf\ComposerStager\API\Precondition\Service\ActiveDirIsReadyInterface:
  132. class: PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirIsReady
  133. PhpTuf\ComposerStager\API\Precondition\Service\ActiveDirIsWritableInterface:
  134. class: PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirIsWritable
  135. PhpTuf\ComposerStager\API\Precondition\Service\BeginnerPreconditionsInterface:
  136. class: PhpTuf\ComposerStager\Internal\Precondition\Service\BeginnerPreconditions
  137. PhpTuf\ComposerStager\API\Precondition\Service\CleanerPreconditionsInterface:
  138. class: PhpTuf\ComposerStager\Internal\Precondition\Service\CleanerPreconditions
  139. PhpTuf\ComposerStager\API\Precondition\Service\CommitterPreconditionsInterface:
  140. class: PhpTuf\ComposerStager\Internal\Precondition\Service\CommitterPreconditions
  141. PhpTuf\ComposerStager\API\Precondition\Service\CommonPreconditionsInterface:
  142. class: PhpTuf\ComposerStager\Internal\Precondition\Service\CommonPreconditions
  143. PhpTuf\ComposerStager\API\Precondition\Service\ComposerIsAvailableInterface:
  144. class: PhpTuf\ComposerStager\Internal\Precondition\Service\ComposerIsAvailable
  145. PhpTuf\ComposerStager\API\Precondition\Service\HostSupportsRunningProcessesInterface:
  146. class: PhpTuf\ComposerStager\Internal\Precondition\Service\HostSupportsRunningProcesses
  147. PhpTuf\ComposerStager\API\Precondition\Service\NoAbsoluteSymlinksExistInterface:
  148. class: PhpTuf\ComposerStager\Internal\Precondition\Service\NoAbsoluteSymlinksExist
  149. PhpTuf\ComposerStager\API\Precondition\Service\NoHardLinksExistInterface:
  150. class: PhpTuf\ComposerStager\Internal\Precondition\Service\NoHardLinksExist
  151. PhpTuf\ComposerStager\API\Precondition\Service\NoLinksExistOnWindowsInterface:
  152. class: PhpTuf\ComposerStager\Internal\Precondition\Service\NoLinksExistOnWindows
  153. PhpTuf\ComposerStager\API\Precondition\Service\NoNestingOnWindowsInterface:
  154. class: PhpTuf\ComposerStager\Internal\Precondition\Service\NoNestingOnWindows
  155. PhpTuf\ComposerStager\API\Precondition\Service\NoSymlinksPointOutsideTheCodebaseInterface:
  156. class: PhpTuf\ComposerStager\Internal\Precondition\Service\NoSymlinksPointOutsideTheCodebase
  157. PhpTuf\ComposerStager\API\Precondition\Service\NoUnsupportedLinksExistInterface:
  158. class: PhpTuf\ComposerStager\Internal\Precondition\Service\NoUnsupportedLinksExist
  159. PhpTuf\ComposerStager\API\Precondition\Service\RsyncIsAvailableInterface:
  160. class: PhpTuf\ComposerStager\Internal\Precondition\Service\RsyncIsAvailable
  161. PhpTuf\ComposerStager\API\Precondition\Service\StagerPreconditionsInterface:
  162. class: PhpTuf\ComposerStager\Internal\Precondition\Service\StagerPreconditions
  163. PhpTuf\ComposerStager\API\Precondition\Service\StagingDirDoesNotExistInterface:
  164. class: PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirDoesNotExist
  165. PhpTuf\ComposerStager\API\Precondition\Service\StagingDirExistsInterface:
  166. class: PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirExists
  167. PhpTuf\ComposerStager\API\Precondition\Service\StagingDirIsReadyInterface:
  168. class: PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirIsReady
  169. PhpTuf\ComposerStager\API\Precondition\Service\StagingDirIsWritableInterface:
  170. class: PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirIsWritable
  171. PhpTuf\ComposerStager\API\Process\Factory\ProcessFactoryInterface:
  172. class: PhpTuf\ComposerStager\Internal\Process\Factory\ProcessFactory
  173. PhpTuf\ComposerStager\API\Process\Service\ComposerProcessRunnerInterface:
  174. class: Drupal\package_manager\ComposerRunner
  175. PhpTuf\ComposerStager\API\Process\Service\OutputCallbackInterface:
  176. class: PhpTuf\ComposerStager\Internal\Process\Service\OutputCallback
  177. PhpTuf\ComposerStager\API\Process\Service\ProcessInterface:
  178. class: PhpTuf\ComposerStager\Internal\Process\Service\Process
  179. PhpTuf\ComposerStager\API\Process\Service\RsyncProcessRunnerInterface:
  180. class: PhpTuf\ComposerStager\Internal\Process\Service\RsyncProcessRunner
  181. PhpTuf\ComposerStager\API\Translation\Factory\TranslatableFactoryInterface:
  182. class: PhpTuf\ComposerStager\Internal\Translation\Factory\TranslatableFactory
  183. PhpTuf\ComposerStager\API\Translation\Service\DomainOptionsInterface:
  184. class: PhpTuf\ComposerStager\Internal\Translation\Service\DomainOptions
  185. PhpTuf\ComposerStager\API\Translation\Service\LocaleOptionsInterface:
  186. class: PhpTuf\ComposerStager\Internal\Translation\Service\LocaleOptions
  187. PhpTuf\ComposerStager\API\Translation\Service\TranslatorInterface:
  188. class: PhpTuf\ComposerStager\Internal\Translation\Service\Translator
  189. PhpTuf\ComposerStager\Internal\Path\Service\PathHelperInterface:
  190. class: PhpTuf\ComposerStager\Internal\Path\Service\PathHelper
  191. public: false
  192. PhpTuf\ComposerStager\Internal\Process\Factory\SymfonyProcessFactoryInterface:
  193. class: PhpTuf\ComposerStager\Internal\Process\Factory\SymfonyProcessFactory
  194. public: false
  195. PhpTuf\ComposerStager\Internal\Process\Service\OutputCallbackAdapterInterface:
  196. class: PhpTuf\ComposerStager\Internal\Process\Service\OutputCallbackAdapter
  197. public: false
  198. PhpTuf\ComposerStager\Internal\Translation\Service\SymfonyTranslatorProxyInterface:
  199. class: PhpTuf\ComposerStager\Internal\Translation\Service\SymfonyTranslatorProxy
  200. public: false
  201. package_manager.direct_write_precondition.directories:
  202. class: Drupal\package_manager\DirectWritePreconditionBypass
  203. decorates: 'PhpTuf\ComposerStager\API\Precondition\Service\ActiveAndStagingDirsAreDifferentInterface'
  204. arguments:
  205. - '@.inner'
  206. public: false
  207. package_manager.direct_write_precondition.rsync:
  208. class: Drupal\package_manager\DirectWritePreconditionBypass
  209. decorates: 'PhpTuf\ComposerStager\API\Precondition\Service\RsyncIsAvailableInterface'
  210. arguments:
  211. - '@.inner'
  212. public: false

Services

Title Deprecated Summary
PhpTuf\ComposerStager\API\Core\CommitterInterface PhpTuf\ComposerStager\Internal\Core\Committer
PhpTuf\ComposerStager\API\Core\StagerInterface PhpTuf\ComposerStager\Internal\Core\Stager
PhpTuf\ComposerStager\API\Environment\Service\EnvironmentInterface PhpTuf\ComposerStager\Internal\Environment\Service\Environment
PhpTuf\ComposerStager\API\FileSyncer\Service\FileSyncerInterface PhpTuf\ComposerStager\Internal\FileSyncer\Service\FileSyncer
PhpTuf\ComposerStager\API\Filesystem\Service\FilesystemInterface PhpTuf\ComposerStager\Internal\Filesystem\Service\Filesystem
PhpTuf\ComposerStager\API\Finder\Service\ExecutableFinderInterface PhpTuf\ComposerStager\Internal\Finder\Service\ExecutableFinder
PhpTuf\ComposerStager\API\Finder\Service\FileFinderInterface PhpTuf\ComposerStager\Internal\Finder\Service\FileFinder
PhpTuf\ComposerStager\API\Path\Factory\PathFactoryInterface PhpTuf\ComposerStager\Internal\Path\Factory\PathFactory
PhpTuf\ComposerStager\API\Path\Factory\PathListFactoryInterface PhpTuf\ComposerStager\Internal\Path\Factory\PathListFactory
PhpTuf\ComposerStager\API\Precondition\Service\ActiveAndStagingDirsAreDifferentInterface PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveAndStagingDirsAreDifferent
PhpTuf\ComposerStager\API\Precondition\Service\ActiveDirExistsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirExists
PhpTuf\ComposerStager\API\Precondition\Service\ActiveDirIsReadyInterface PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirIsReady
PhpTuf\ComposerStager\API\Precondition\Service\ActiveDirIsWritableInterface PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirIsWritable
PhpTuf\ComposerStager\API\Precondition\Service\BeginnerPreconditionsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\BeginnerPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\CleanerPreconditionsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\CleanerPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\CommitterPreconditionsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\CommitterPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\CommonPreconditionsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\CommonPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\ComposerIsAvailableInterface PhpTuf\ComposerStager\Internal\Precondition\Service\ComposerIsAvailable
PhpTuf\ComposerStager\API\Precondition\Service\HostSupportsRunningProcessesInterface PhpTuf\ComposerStager\Internal\Precondition\Service\HostSupportsRunningProcesses
PhpTuf\ComposerStager\API\Precondition\Service\NoAbsoluteSymlinksExistInterface PhpTuf\ComposerStager\Internal\Precondition\Service\NoAbsoluteSymlinksExist
PhpTuf\ComposerStager\API\Precondition\Service\NoHardLinksExistInterface PhpTuf\ComposerStager\Internal\Precondition\Service\NoHardLinksExist
PhpTuf\ComposerStager\API\Precondition\Service\NoLinksExistOnWindowsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\NoLinksExistOnWindows
PhpTuf\ComposerStager\API\Precondition\Service\NoNestingOnWindowsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\NoNestingOnWindows
PhpTuf\ComposerStager\API\Precondition\Service\NoSymlinksPointOutsideTheCodebaseInterface PhpTuf\ComposerStager\Internal\Precondition\Service\NoSymlinksPointOutsideTheCodebase
PhpTuf\ComposerStager\API\Precondition\Service\NoUnsupportedLinksExistInterface PhpTuf\ComposerStager\Internal\Precondition\Service\NoUnsupportedLinksExist
PhpTuf\ComposerStager\API\Precondition\Service\RsyncIsAvailableInterface PhpTuf\ComposerStager\Internal\Precondition\Service\RsyncIsAvailable
PhpTuf\ComposerStager\API\Precondition\Service\StagerPreconditionsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\StagerPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\StagingDirDoesNotExistInterface PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirDoesNotExist
PhpTuf\ComposerStager\API\Precondition\Service\StagingDirExistsInterface PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirExists
PhpTuf\ComposerStager\API\Precondition\Service\StagingDirIsReadyInterface PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirIsReady
PhpTuf\ComposerStager\API\Precondition\Service\StagingDirIsWritableInterface PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirIsWritable
PhpTuf\ComposerStager\API\Process\Factory\ProcessFactoryInterface PhpTuf\ComposerStager\Internal\Process\Factory\ProcessFactory
PhpTuf\ComposerStager\API\Process\Service\ComposerProcessRunnerInterface Drupal\package_manager\ComposerRunner
PhpTuf\ComposerStager\API\Process\Service\OutputCallbackInterface PhpTuf\ComposerStager\Internal\Process\Service\OutputCallback
PhpTuf\ComposerStager\API\Process\Service\ProcessInterface PhpTuf\ComposerStager\Internal\Process\Service\Process
PhpTuf\ComposerStager\API\Process\Service\RsyncProcessRunnerInterface PhpTuf\ComposerStager\Internal\Process\Service\RsyncProcessRunner
PhpTuf\ComposerStager\API\Translation\Factory\TranslatableFactoryInterface PhpTuf\ComposerStager\Internal\Translation\Factory\TranslatableFactory
PhpTuf\ComposerStager\API\Translation\Service\DomainOptionsInterface PhpTuf\ComposerStager\Internal\Translation\Service\DomainOptions
PhpTuf\ComposerStager\API\Translation\Service\LocaleOptionsInterface PhpTuf\ComposerStager\Internal\Translation\Service\LocaleOptions
PhpTuf\ComposerStager\API\Translation\Service\TranslatorInterface PhpTuf\ComposerStager\Internal\Translation\Service\Translator
PhpTuf\ComposerStager\Internal\Path\Service\PathHelperInterface PhpTuf\ComposerStager\Internal\Path\Service\PathHelper
PhpTuf\ComposerStager\Internal\Process\Factory\SymfonyProcessFactoryInterface PhpTuf\ComposerStager\Internal\Process\Factory\SymfonyProcessFactory
PhpTuf\ComposerStager\Internal\Process\Service\OutputCallbackAdapterInterface PhpTuf\ComposerStager\Internal\Process\Service\OutputCallbackAdapter
PhpTuf\ComposerStager\Internal\Translation\Service\SymfonyTranslatorProxyInterface PhpTuf\ComposerStager\Internal\Translation\Service\SymfonyTranslatorProxy
Symfony\Component\Filesystem\Filesystem
Symfony\Component\Process\ExecutableFinder
_defaults

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.