[Mate] Drop symfony/ai-mate-composer-plugin from symfony/ai-mate require#2026
Draft
wachterjohannes wants to merge 1 commit intosymfony:mainfrom
Draft
[Mate] Drop symfony/ai-mate-composer-plugin from symfony/ai-mate require#2026wachterjohannes wants to merge 1 commit intosymfony:mainfrom
symfony/ai-mate-composer-plugin from symfony/ai-mate require#2026wachterjohannes wants to merge 1 commit intosymfony:mainfrom
Conversation
This was referenced May 3, 2026
Remove `symfony/ai-mate-composer-plugin` from `symfony/ai-mate`'s require list so automatic discovery is delegated to the upcoming `symfony/ai-mate` Symfony Flex recipe rather than the plugin. The plugin source is intentionally left in place under `src/mate/composer-plugin/` and will be removed in a follow-up. Documentation (README, RST, UPGRADE) is updated to describe the recipe-based migration path. The recipe wires `vendor/bin/mate discover --composer --ignore-missing-file` into `@auto-scripts`, which depends on the `--ignore-missing-file` option added in a separate PR.
c2c2397 to
42e40a5
Compare
symfony/ai-mate-composer-plugin from symfony/ai-mate require
chr-hertel
added a commit
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.
Removes
symfony/ai-mate-composer-pluginfromsymfony/ai-mate's require list and updates the docs to point at the upcoming Flex recipe instead of the bundled plugin. Depends on #2027 (the docs referencemate discover --ignore-missing-file, added there).Cross-repo PRs
mate discover --ignore-missing-filesymfony/ai-mate-composer-pluginfromsymfony/ai-mate's require list (depends on #2027)@auto-scriptsintopost-install-cmd/post-update-cmdsymfony/ai-materecipeSummary
symfony/ai-mate-composer-pluginfromsrc/mate/composer.json'srequire.README.md,docs/components/mate.rst,UPGRADE.mdandCHANGELOG.mdto point at the Flex recipe (with--ignore-missing-file) and document a manualauto-scriptswiring fallback for projects without Flex.src/mate/composer-plugin/is intentionally left in place for now and will be removed in a follow-up once the recipe has landed and projects have had a chance to migrate. Projects on legacy setups can still install the plugin explicitly viacomposer require symfony/ai-mate-composer-plugin.Usage
Once the recipe (symfony/recipes#1535) ships, automatic refresh runs through
@auto-scripts; non-Flex projects follow the manual-wiring example added toUPGRADE.md.