Fixes #13112 Consolidate symfony, symfony2, and symfony6 plugins into a single Symfony plugin

This commit is contained in:
Evgenii Orlov 2025-06-19 16:55:23 +02:00
commit a2b5bfd435
6 changed files with 223 additions and 10 deletions

View file

@ -1,5 +1,10 @@
# Symfony2
> **⚠️ DEPRECATION WARNING**
> This plugin is deprecated and will be removed in a future release.
> **Please migrate to the unified [`symfony`](../symfony/) plugin** which supports all Symfony versions (2.x through 6+).
> Simply change `symfony2` to `symfony` in your `.zshrc` plugins list.
This plugin provides completion for [Symfony 2](https://symfony.com/), as well as aliases for frequent Symfony commands.
To use it add symfony2 to the plugins array in your zshrc file.
@ -8,6 +13,16 @@ To use it add symfony2 to the plugins array in your zshrc file.
plugins=(... symfony2)
```
## Migration
**Recommended:** Use the unified [`symfony`](../symfony/) plugin instead:
```bash
plugins=(... symfony) # Replace symfony2 with symfony
```
The unified plugin provides the same functionality plus automatic version detection and support for all Symfony versions.
## Aliases
| Alias | Command | Description |

View file

@ -1,4 +1,11 @@
# Symfony2 basic command completion
#
# DEPRECATION WARNING: This plugin is deprecated and will be removed in a future release.
# Please migrate to the unified 'symfony' plugin which supports all Symfony versions.
# Simply change 'symfony2' to 'symfony' in your .zshrc plugins list.
#
echo "⚠️ WARNING: The 'symfony2' plugin is deprecated. Please use the unified 'symfony' plugin instead." >&2
echo " Change 'symfony2' to 'symfony' in your .zshrc plugins list." >&2
_symfony_console () {
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"