[AiMate] Add recipe#1535
Draft
wachterjohannes wants to merge 1 commit intosymfony:mainfrom
Draft
Conversation
This was referenced May 3, 2026
|
Thanks for the PR 😍 How to test these changes in your application
Diff between recipe versionsIn order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. |
chr-hertel
added a commit
to symfony/ai
that referenced
this pull request
May 4, 2026
… command (wachterjohannes) This PR was merged into the main branch. Discussion ---------- [Mate] Add `--ignore-missing-file` option to `discover` command | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | Fix #1994 (partial) | License | MIT Adds an `--ignore-missing-file` option to `mate discover` that exits `0` as a no-op when `mate/extensions.php` does not exist. Required so the upcoming `symfony/ai-mate` Symfony Flex recipe can invoke `mate discover` unconditionally from Composer scripts. ## Cross-repo PRs | # | Repo | PR | What | Status | |---|---|---|---|---| | 1 | symfony/ai | [#2027](#2027) | `mate discover --ignore-missing-file` | **this PR** | | 2 | symfony/ai | [#2026](#2026) | Drop `symfony/ai-mate-composer-plugin` from `symfony/ai-mate`'s require list (depends on #2027) | draft | | 3 | symfony/flex | [symfony/flex#1089](symfony/flex#1089) | Auto-wire ``@auto`-scripts` into `post-install-cmd` / `post-update-cmd` | draft | | 4 | symfony/recipes | [symfony/recipes#1535](symfony/recipes#1535) | The `symfony/ai-mate` recipe | draft | | 5 | symfony/ai | _follow-up_ | Delete the composer plugin source | not started | ## Summary - Adds `--ignore-missing-file` option to `mate discover`: exits `0` when `mate/extensions.php` does not exist. ## Usage The Flex recipe (symfony/recipes#1535) wires `vendor/bin/mate discover --composer --ignore-missing-file` into ``@auto`-scripts`, so it runs unconditionally on every `composer install` / `composer update` — including the first one, before `mate init` has been executed. Commits ------- 439cabe [Mate] Add --ignore-missing-file option to discover command
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.
Adds the Symfony Flex recipe for
symfony/ai-mate, replacing the behaviour previously provided by thesymfony/ai-mate-composer-pluginpackage. Tracking issue: symfony/ai#1994.Cross-repo PRs
mate discover --ignore-missing-filesymfony/ai-mate-composer-pluginfromsymfony/ai-mate's require list (depends on symfony/ai#2027)@auto-scriptsintopost-install-cmd/post-update-cmdsymfony/ai-materecipeSummary
vendor/bin/mate discover --composer --ignore-missing-fileas acomposer-scriptsentry.vendor/bin/mate init" banner viapost-install.txt.matealias.Usage
After
composer require symfony/ai-mate, Flex applies the recipe automatically: the discover script is wired into@auto-scriptsand runs on everycomposer install/composer update, and the install banner is shown once.Marking as draft until symfony/ai#2027, symfony/ai#2026 and symfony/flex#1089 are merged and a Flex release is cut.