package_manager.services.yml

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