Under Construction
A simple package that's provides useful snippets for the latest versions of Symfony.
Feel free to send me suggestions :)
| Title | Snippet | Version |
|---|---|---|
| Create a new action function | sfaction | |
| Get a container | sfcontainer | |
| Controller Template | sfcontroller | |
| Create the Entity Manager Variable | sfem | |
| Throw an Access Denied Exception | sfexceptionaccessdenied | |
| Throw a Not Found Exception | sfexceptionnotfound | |
| Forward to an another controller/action | sfforward | |
| Return a json response | sfjson | 3.1+ |
| Get a parameter value from the parameter file | sfparameter | 2.7+ |
| Return a redirect response using a route name | sfredirectroute | 2.6+ |
| Return a redirect response | sfredirect | |
| Return a view | sfrender | |
| Retrieve a repository | sfrepository | |
| Get the session object | sfsession | |
| Dump a variable using the Symfony's one | sfdump |