2018-10-23 14:43:44 +02:00
|
|
|
# Symfony2
|
|
|
|
|
2018-10-24 16:01:42 +02:00
|
|
|
This plugin provides completion for [Symfony 2](https://symfony.com/), as well as aliases for frequent Symfony commands.
|
2018-10-23 14:43:44 +02:00
|
|
|
|
2018-10-24 16:01:42 +02:00
|
|
|
To use it add symfony2 to the plugins array in your zshrc file.
|
2018-10-23 14:43:44 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
plugins=(... symfony2)
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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:contaner | List the different services |
|
|
|
|
| `sfgb` | sf generate:bundle | Generate a bundle |
|
2018-10-25 09:24:02 +02:00
|
|
|
| `sfgc` | sf generate:command | Generate a command |
|
2018-10-23 14:43:44 +02:00
|
|
|
| `sfge` | sf doctrine:generate:entity | Generate an entity |
|
|
|
|
| `sfsu` | sf doctrine:schema:update | Update the schema in Database |
|
2018-10-25 09:25:02 +02:00
|
|
|
| `sfdc` | sf doctrine:database:create | Create the Database
|
2018-10-23 14:43:44 +02:00
|
|
|
| `sfdev` | sf --env=dev | Update environment to `dev` |
|
|
|
|
| `sfprod` | sf --env=prod | Update environment to `prod` |
|