feat(php): add Symfony framework support - #626
Open
iloveitaly wants to merge 9 commits into
Open
Conversation
Generated-by: aiautocommit
- initialize standard directory structure and configuration files for a new Symfony application - include essential asset management, routing, security, and environment configurations - provide boilerplate files for controllers, entities, and repositories Generated-by: aiautocommit
…ript - Inject standard environment variables directly into the build plan instead of relying on implicit defaults. - Clean up the `start-container.sh` template by removing conditional Laravel-specific logic that was running on non-Laravel projects. - Update test snapshots to reflect the standardized runtime configuration and simplified entrypoint script. Generated-by: aiautocommit
- Move framework-specific initialization logic into dedicated scripts for Laravel and Symfony. - Simplify the main startup script by removing conditional branching for framework detection. Generated-by: aiautocommit
- Add a home controller to provide a valid response for root route requests. - Update test configuration to include mandatory environment variables and verify the successful response. Generated-by: aiautocommit
- refactor framework detection to support symfony in addition to laravel - automate symfony-specific setup including directory permissions and necessary php extensions - update build commands and env variables to align with symfony production best practices - centralize framework detection and configuration logic to improve extensibility Generated-by: aiautocommit
Generated-by: aiautocommit
Local vendor trees were matched by **/composer.json and bloated the Symfony plan snapshot, causing CI snapshot mismatches when vendor is absent.
Snapshot pollution was from a local vendor/ tree; keep discovery simple and regenerate plans without install artifacts present.
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.
Motivation
Railpack could build PHP apps but only treated Laravel specially (
public/root, start-time setup). Symfony apps needed the same zero-config path (#89).Description
Detect Symfony via
symfony/framework-bundle(or Flexbin/console+symfony.lock), set document root to/app/public, use prod env defaults, and install framework-specific start scripts (vanilla / Laravel / Symfony) as/start-container.sh. Symfony startup runs Doctrine migrations when available (honoringRAILPACK_SKIP_MIGRATIONS) andcache:warmup; framework choice is recorded asphpFrameworkmetadata with a regenerableexamples/php-symfonyintegration example.Test
mise run checkmise run test(includes PHP plan snapshots)cd examples/php-symfony && mise run test-integration-cwdLinks