Skip to content
Snippets Groups Projects
package_manager.services.yml 9.93 KiB
Newer Older
  • Learn to ignore specific revisions
  •   # 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'
    
      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:
    
      PhpTuf\ComposerStager\Infrastructure\Service\ProcessRunner\ComposerRunner:
    
      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'
    
      PhpTuf\ComposerStager\Infrastructure\Service\FileSyncer\RsyncFileSyncer:
    
      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']
    
      # 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.
    
        class: PhpTuf\ComposerStager\Domain\Core\Beginner\Beginner
    
        class: PhpTuf\ComposerStager\Domain\Core\Stager\Stager
    
        class: PhpTuf\ComposerStager\Domain\Core\Committer\Committer
    
      package_manager.path_locator:
        class: Drupal\package_manager\PathLocator
        arguments:
          - '%app.root%'
    
    
      # Validators.
      package_manager.validator.composer_executable:
    
        class: Drupal\package_manager\Validator\ComposerExecutableValidator
    
          - '@PhpTuf\ComposerStager\Domain\Service\ProcessRunner\ComposerRunnerInterface'
    
          - '@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 }
    
        class: Drupal\package_manager\Validator\PendingUpdatesValidator
    
        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 }
    
        class: Drupal\package_manager\Validator\WritableFileSystemValidator
    
        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 }
    
      package_manager.validator.symlink:
        class: Drupal\package_manager\Validator\SymlinkValidator
        arguments:
          - '@package_manager.path_locator'
        tags:
          - { name: event_subscriber }
    
      package_manager.test_site_excluder:
        class: Drupal\package_manager\PathExcluder\TestSiteExcluder
    
          - '@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'
    
      package_manager.sqlite_excluder:
        class: Drupal\package_manager\PathExcluder\SqliteDatabaseExcluder
        arguments:
          - '@package_manager.path_locator'
    
        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'
    
      package_manager.uninstall_validator:
        class: Drupal\package_manager\PackageManagerUninstallValidator
        tags:
          - { name: module_install.uninstall_validator }
        parent: container.trait
        calls:
          - ['setContainer', ['@service_container']]
        lazy: true