WIP: feat: add Symfony as a first-class stack#259
Draft
pjcdawkins wants to merge 10 commits intomainfrom
Draft
Conversation
…ove context handling
Add Symfony to the question models and handlers so that detected Symfony projects get proper configuration instead of falling back to GenericStack or redirecting to Symfony CLI. In non-interactive mode (as used by source-integration-apps), Symfony projects now produce a config with symfony-build/symfony-deploy hooks, /var/cache and /var/log tmp mounts, and public/ web root. In interactive mode, the Symfony CLI prompt is preserved. If declined, the stack is now set to Symfony instead of Generic. Changes: - models/stack.go: add Symfony constant, Title, RuntimeForStack (PHP) - models/answer.go: add Symfony case in getStack() - stack.go: set Symfony stack in both non-interactive and interactive decline paths - build_steps.go: use Symfony Cloud configurator (symfony-build) - deploy_command.go: use symfony-deploy - mounts.go: /var/cache and /var/log as tmp mounts - locations.go: root: public, passthru: /index.php Closes [SIA-20: Implement Symfony configuration in platformify](https://linear.app/platformsh/issue/SIA-20/implement-symfony-configuration-in-platformify) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Keep fork's struct-based Runtime/ServiceName (loaded from registry.json) over main's string constants. Keep fork's simplified templates without BuildFlavor conditional. Remove version.go and platformifier_test.go (superseded by fork's registry.go/registry.json and discovery tests). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feature/abstract-fsbranch)Symfony stack configuration
When a Symfony project is detected (via
symfony.lockorsymfony/framework-bundle):symfony-build)symfony-deploy/var/cacheand/var/logas tmproot: public,passthru: /index.phpReference:
configuration-sampler/data/symfony-v7.2.yaml🤖 Generated with Claude Code