Repository navigation
Ship a Symfony Flex recipe with every release - #189
Merged
Merged
Conversation
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 1
Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 9, 2026
Closed
Merged
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.
Refs #182
What
src/Bridge/Symfony/recipe/3.2/(recipes-contriblayout): registersSymfonyBundle, copiesconfig/packages/zammad.yaml, addsZAMMAD_URL/ZAMMAD_TOKENto.env. Excluded from the Composer dist viaexport-ignore.bin/build-flex-endpoint.phpturns that source into a Flex endpoint (index.json+zammad.zammad-api-client-php.3.2.json). The index declaresis_contrib: false, so noallow-contribis needed.release.ymlbuilds the endpoint on every published release and attaches it as release assets. It can be run by hand for a tag that lacks them.composer removereverts it. The manual fallback is gone from the test, so a broken recipe fails the job.SymfonyBundledocblock describe the Flex setup first, manual registration second. CHANGELOG entry under[Unreleased].Users add the source once, before
composer require:composer config --json extra.symfony.endpoint \ '["https://github.com/zammad/zammad-api-client-php/releases/latest/download/index.json", "flex://defaults"]'Verified (locally, PHP 8.4)
symfony/skeleton6.4, 7.4 and 8.1: recipe applied,ZammadClientresolves,composer removereverts all changes. Laravel 13 unchanged.composer recipes:install zammad/zammad-api-client-php --forceapplies the recipe afterwards.releases/latest/download/…redirect chain (two redirects, host change,application/octet-stream) is followed by Composer'sHttpDownloader; Flex applied the recipe through a local reproduction of that chain.Notes
3.2, so it applies to every client from 3.2.0 on, including the upcoming patch release that ships it. Flex compares only major.minor: a3.2.1folder would not apply before 3.3.0 (tested).symfony/recipes-contribcan follow from the same source, so that the extra endpoint line becomes unnecessary.