mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-15 16:23:15 +08:00
2.1 KiB
2.1 KiB
Symfony2
⚠️ DEPRECATION WARNING
This plugin is deprecated and will be removed in a future release.
Please migrate to the unifiedsymfonyplugin which supports all Symfony versions (2.x through 6+).
Simply changesymfony2tosymfonyin your.zshrcplugins list.
This plugin provides completion for Symfony 2, as well as aliases for frequent Symfony commands.
To use it add symfony2 to the plugins array in your zshrc file.
plugins=(... symfony2)
Migration
Recommended: Use the unified symfony plugin instead:
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 |
|---|---|---|
sf |
php app/console | Start the symfony console |
sfcl |
sf cache:clear | Clear the cache |
sfsr |
sf server:run | Run the dev server |
sfcw |
sf cache:warmup | Use the Bundles warmer |
sfroute |
sf debug:router | Show the different routes |
sfcontainer |
sf debug:container | List the different services |
sfgb |
sf generate:bundle | Generate a bundle |
sfgc |
sf generate:controller | Generate a controller |
sfgcom |
sf generate:command | Generate a command |
sfge |
sf doctrine:generate:entity | Generate an entity |
sfsu |
sf doctrine:schema:update | Update the schema in Database |
sfdc |
sf doctrine:database:create | Create the Database |
sfdev |
sf --env=dev | Update environment to dev |
sfprod |
sf --env=prod | Update environment to prod |