package_manager.services.yml

core/modules/package_manager/package_manager.services.yml

File

core/modules/package_manager/package_manager.services.yml

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

Services

Title Deprecated Summary
PhpTuf\ComposerStager\API\Core\CleanerInterface PhpTuf\ComposerStager\Internal\Core\Cleaner
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 PhpTuf\ComposerStager\Internal\Process\Service\ComposerProcessRunner
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.