Newer
Older
services:
# Underlying Symfony utilities for Composer Stager.
Symfony\Component\Filesystem\Filesystem:
public: false
Symfony\Component\Process\ExecutableFinder:
public: false
# Basic infrastructure services for Composer Stager.
Drupal\package_manager\ProcessFactory:
arguments:
- '@file_system'
- '@config.factory'
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Filesystem\Filesystem:
autowire: true
public: false
Drupal\package_manager\ExecutableFinder:
arguments:
$config_factory: '@config.factory'
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Factory\Path\PathFactory:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Factory\Process\ProcessFactoryInterface:
alias: 'Drupal\package_manager\ProcessFactory'
PhpTuf\ComposerStager\Domain\Service\Filesystem\FilesystemInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Filesystem\Filesystem'
PhpTuf\ComposerStager\Infrastructure\Service\Finder\ExecutableFinderInterface:
alias: 'Drupal\package_manager\ExecutableFinder'
PhpTuf\ComposerStager\Infrastructure\Factory\Path\PathFactoryInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Factory\Path\PathFactory'
# Executable runners for Composer Stager.
PhpTuf\ComposerStager\Infrastructure\Service\ProcessRunner\RsyncRunner:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\ProcessRunner\ComposerRunner:
autowire: true
public: false
PhpTuf\ComposerStager\Domain\Service\ProcessRunner\RsyncRunnerInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\ProcessRunner\RsyncRunner'
PhpTuf\ComposerStager\Domain\Service\ProcessRunner\ComposerRunnerInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\ProcessRunner\ComposerRunner'
# File syncers for Composer Stager.
PhpTuf\ComposerStager\Infrastructure\Service\FileSyncer\RsyncFileSyncer:
autowire: true
PhpTuf\ComposerStager\Infrastructure\Service\FileSyncer\PhpFileSyncer:
autowire: true
Drupal\package_manager\FileSyncerFactory:
arguments:
$config_factory: '@config.factory'
autowire: true
public: false
PhpTuf\ComposerStager\Domain\Service\FileSyncer\FileSyncerInterface:
factory: ['@Drupal\package_manager\FileSyncerFactory', 'create']
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Composer Stager preconditions.
PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\CommonPreconditions:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\BeginnerPreconditions:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\StagerPreconditions:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\CommitterPreconditions:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\StagingDirIsReady:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ComposerIsAvailable:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ActiveDirExists:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ActiveDirIsWritable:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ActiveAndStagingDirsAreDifferent:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Precondition\StagingDirExists:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Precondition\StagingDirIsWritable:
autowire: true
public: false
PhpTuf\ComposerStager\Infrastructure\Service\Precondition\StagingDirDoesNotExist:
autowire: true
public: false
PhpTuf\ComposerStager\Domain\Aggregate\PreconditionsTree\CommitterPreconditionsInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\CommitterPreconditions'
PhpTuf\ComposerStager\Domain\Aggregate\PreconditionsTree\BeginnerPreconditionsInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\BeginnerPreconditions'
PhpTuf\ComposerStager\Domain\Aggregate\PreconditionsTree\StagerPreconditionsInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\StagerPreconditions'
PhpTuf\ComposerStager\Domain\Aggregate\PreconditionsTree\CommonPreconditionsInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\CommonPreconditions'
PhpTuf\ComposerStager\Domain\Aggregate\PreconditionsTree\StagingDirIsReadyInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Aggregate\PreconditionsTree\StagingDirIsReady'
PhpTuf\ComposerStager\Domain\Service\Precondition\ComposerIsAvailableInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ComposerIsAvailable'
PhpTuf\ComposerStager\Domain\Service\Precondition\ActiveDirExistsInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ActiveDirExists'
PhpTuf\ComposerStager\Domain\Service\Precondition\ActiveDirIsWritableInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ActiveDirIsWritable'
PhpTuf\ComposerStager\Domain\Service\Precondition\ActiveAndStagingDirsAreDifferentInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Precondition\ActiveAndStagingDirsAreDifferent'
PhpTuf\ComposerStager\Domain\Service\Precondition\StagingDirExistsInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Precondition\StagingDirExists'
PhpTuf\ComposerStager\Domain\Service\Precondition\StagingDirIsWritableInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Precondition\StagingDirIsWritable'
PhpTuf\ComposerStager\Domain\Service\Precondition\StagingDirDoesNotExistInterface:
alias: 'PhpTuf\ComposerStager\Infrastructure\Service\Precondition\StagingDirDoesNotExist'
# Services provided to Drupal by Package Manager.
package_manager.beginner:
class: PhpTuf\ComposerStager\Domain\Core\Beginner\Beginner
autowire: true
package_manager.stager:
class: PhpTuf\ComposerStager\Domain\Core\Stager\Stager
autowire: true
package_manager.committer:
class: PhpTuf\ComposerStager\Domain\Core\Committer\Committer
autowire: true
package_manager.path_locator:
class: Drupal\package_manager\PathLocator
arguments:
- '%app.root%'

Adam G-H
committed
# Validators.
package_manager.validator.composer_executable:
class: Drupal\package_manager\Validator\ComposerExecutableValidator

Adam G-H
committed
arguments:
- '@PhpTuf\ComposerStager\Domain\Service\ProcessRunner\ComposerRunnerInterface'
- '@module_handler'

Adam G-H
committed
- '@string_translation'
tags:
- { name: event_subscriber }
package_manager.validator.disk_space:
class: Drupal\package_manager\Validator\DiskSpaceValidator
arguments:
- '@package_manager.path_locator'
- '@string_translation'
tags:
- { name: event_subscriber }

Adam G-H
committed
package_manager.validator.pending_updates:
class: Drupal\package_manager\Validator\PendingUpdatesValidator

Adam G-H
committed
arguments:
- '%app.root%'
- '@update.post_update_registry'
- '@string_translation'
tags:
- { name: event_subscriber }
package_manager.validator.lock_file:
class: Drupal\package_manager\Validator\LockFileValidator
arguments:
- '@state'
- '@package_manager.path_locator'
- '@string_translation'
tags:
- { name: event_subscriber }

Adam G-H
committed
package_manager.validator.file_system:
class: Drupal\package_manager\Validator\WritableFileSystemValidator

Adam G-H
committed
arguments:
- '@package_manager.path_locator'
- '%app.root%'
- '@string_translation'
tags:
- { name: event_subscriber }
package_manager.validator.composer_settings:
class: Drupal\package_manager\Validator\ComposerSettingsValidator
arguments:
- '@string_translation'
tags:
- { name: event_subscriber }
package_manager.validator.multisite:
class: Drupal\package_manager\Validator\MultisiteValidator
arguments:
- '@package_manager.path_locator'
- '@string_translation'
tags:
- { name: event_subscriber }

Adam G-H
committed
package_manager.validator.symlink:
class: Drupal\package_manager\Validator\SymlinkValidator
arguments:
- '@package_manager.path_locator'
tags:
- { name: event_subscriber }

Adam G-H
committed
package_manager.test_site_excluder:
class: Drupal\package_manager\PathExcluder\TestSiteExcluder

Adam G-H
committed
arguments:

Adam G-H
committed
- '@package_manager.path_locator'
tags:
- { name: event_subscriber }
package_manager.vendor_hardening_excluder:
class: Drupal\package_manager\PathExcluder\VendorHardeningExcluder
arguments:
- '@package_manager.path_locator'
tags:
- { name: event_subscriber }
package_manager.site_files_excluder:
class: Drupal\package_manager\PathExcluder\SiteFilesExcluder
arguments:
$path_locator: '@package_manager.path_locator'
$stream_wrapper_manager: '@stream_wrapper_manager'

Adam G-H
committed
tags:
- { name: event_subscriber }
autowire: true

Adam G-H
committed
package_manager.sqlite_excluder:
class: Drupal\package_manager\PathExcluder\SqliteDatabaseExcluder
arguments:
- '@package_manager.path_locator'
- '@database'

Adam G-H
committed
tags:
- { name: event_subscriber }
package_manager.git_excluder:
class: Drupal\package_manager\PathExcluder\GitExcluder
arguments:
- '@package_manager.path_locator'
tags:
- { name: event_subscriber }
package_manager.site_configuration_excluder:
class: Drupal\package_manager\PathExcluder\SiteConfigurationExcluder
arguments:
- '%site.path%'
- '@package_manager.path_locator'

Adam G-H
committed
tags:
- { name: event_subscriber }
package_manager.uninstall_validator:
class: Drupal\package_manager\PackageManagerUninstallValidator
tags:
- { name: module_install.uninstall_validator }
parent: container.trait
calls:
- ['setContainer', ['@service_container']]
lazy: true