Skip to content

[2.x] feat(install): support queue configuration in installer file#4484

Merged
imorland merged 1 commit into2.xfrom
im/installer-queue-config
Mar 22, 2026
Merged

[2.x] feat(install): support queue configuration in installer file#4484
imorland merged 1 commit into2.xfrom
im/installer-queue-config

Conversation

@imorland
Copy link
Copy Markdown
Member

Summary

Closes #4469.

FileDataProvider now reads a queue key from the JSON/YAML installer config file and passes it through to StoreConfig via Installation. Previously the queue config in config.php was always hardcoded to ['driver' => 'sync'], requiring a manual post-install edit for any other driver.

Usage

{
  "baseUrl": "https://example.com",
  "databaseConfiguration": { "..." },
  "queue": {
    "driver": "database"
  }
}

Omitting the queue key defaults to ['driver' => 'sync'], preserving existing behaviour.

Changes

  • FileDataProvider — reads queue from config, defaults to ['driver' => 'sync']
  • Installation — adds queueConfig(array $queue): self fluent method
  • StoreConfig — accepts queue config as constructor param (default ['driver' => 'sync']), uses it in buildConfig() instead of hardcoded value

Test plan

  • Install with a config file containing "queue": {"driver": "database"} and verify config.php contains the correct queue config
  • Install without a queue key and verify config.php still defaults to sync

FileDataProvider now reads a 'queue' key from the JSON/YAML installer
config file and passes it through to StoreConfig via Installation.

Previously the queue config in config.php was always hardcoded to
['driver' => 'sync'], requiring a manual post-install edit for any
other driver. Now it can be set at install time:

    {
      "baseUrl": "https://example.com",
      "databaseConfiguration": { ... },
      "queue": { "driver": "database" }
    }

Defaults to ['driver' => 'sync'] when the key is absent, preserving
existing behaviour.

Closes #4469
@imorland imorland changed the title feat(install): support queue configuration in installer file [2.x] feat(install): support queue configuration in installer file Mar 22, 2026
@imorland imorland added this to the 2.0.0-beta.8 milestone Mar 22, 2026
@imorland imorland marked this pull request as ready for review March 22, 2026 10:23
@imorland imorland requested a review from a team as a code owner March 22, 2026 10:23
@imorland imorland merged commit 30943d7 into 2.x Mar 22, 2026
25 checks passed
@imorland imorland deleted the im/installer-queue-config branch March 22, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.x] Support queue configuration in installer JSON/YAML file

1 participant