Browse Source

Add symfony2 aliases (#7338)

* Documentation for Npm plugin added

* Fix style and add alias descriptions

* Add Generate Command alias

* Add Create Database alias

* Add Generate Controller alias
Erwan ROUSSEL 5 years ago
parent
commit
dc3a605ec1
2 changed files with 6 additions and 0 deletions
  1. 3 0
      plugins/symfony2/README.md
  2. 3 0
      plugins/symfony2/symfony2.plugin.zsh

+ 3 - 0
plugins/symfony2/README.md

@@ -19,7 +19,10 @@ plugins=(... symfony2)
 | `sfroute`     | sf debug:router              | Show the different routes     |
 | `sfcontainer` | sf debug:contaner            | 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`  |

+ 3 - 0
plugins/symfony2/symfony2.plugin.zsh

@@ -25,7 +25,10 @@ alias sfcw='sf cache:warmup'
 alias sfroute='sf debug:router'
 alias sfcontainer='sf debug:container'
 alias sfgb='sf generate:bundle'
+alias sfgc='sf generate:controller'
+alias sfgcom='sf generate:command'
 alias sfge='sf doctrine:generate:entity'
 alias sfsu='sf doctrine:schema:update'
+alias sfdc='sf doctrine:database:create'
 alias sfdev='sf --env=dev'
 alias sfprod='sf --env=prod'