Skip to content

[Mate] Drop symfony/ai-mate-composer-plugin from symfony/ai-mate require#2026

Draft
wachterjohannes wants to merge 1 commit intosymfony:mainfrom
wachterjohannes:feature/mate-flex-recipe-prep
Draft

[Mate] Drop symfony/ai-mate-composer-plugin from symfony/ai-mate require#2026
wachterjohannes wants to merge 1 commit intosymfony:mainfrom
wachterjohannes:feature/mate-flex-recipe-prep

Conversation

@wachterjohannes
Copy link
Copy Markdown
Contributor

@wachterjohannes wachterjohannes commented May 3, 2026

Q A
Bug fix? no
New feature? yes
Docs? yes
Issues Fix #1994 (partial)
License MIT

Removes symfony/ai-mate-composer-plugin from symfony/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 reference mate discover --ignore-missing-file, added there).

Cross-repo PRs

# Repo PR What Status
1 symfony/ai symfony/ai#2027 mate discover --ignore-missing-file open
2 symfony/ai symfony/ai#2026 Drop symfony/ai-mate-composer-plugin from symfony/ai-mate's require list (depends on #2027) this PR
3 symfony/flex symfony/flex#1089 Auto-wire @auto-scripts into post-install-cmd / post-update-cmd draft
4 symfony/recipes symfony/recipes#1535 The symfony/ai-mate recipe draft
5 symfony/ai follow-up Delete the composer plugin source not started

Summary

  • Removes symfony/ai-mate-composer-plugin from src/mate/composer.json's require.
  • Updates README.md, docs/components/mate.rst, UPGRADE.md and CHANGELOG.md to point at the Flex recipe (with --ignore-missing-file) and document a manual auto-scripts wiring fallback for projects without Flex.
  • Plugin source under 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 via composer 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 to UPGRADE.md.

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.
@wachterjohannes wachterjohannes force-pushed the feature/mate-flex-recipe-prep branch from c2c2397 to 42e40a5 Compare May 3, 2026 19:10
@wachterjohannes wachterjohannes changed the title [Mate] Prepare for Flex recipe replacement of Composer plugin [Mate] Drop symfony/ai-mate-composer-plugin from symfony/ai-mate require May 3, 2026
@wachterjohannes wachterjohannes marked this pull request as ready for review May 3, 2026 19:17
@carsonbot carsonbot added Feature New feature Mate Issues & PRs about the AI Mate component Status: Needs Review labels May 3, 2026
@wachterjohannes wachterjohannes marked this pull request as draft May 3, 2026 19:17
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature Mate Issues & PRs about the AI Mate component Status: Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mate] Remove composer plugin and use recipes instead

2 participants