Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A simple package that's provides useful snippets for the latest versions of Symf
| ----- | ------- | ------- |
| Create a new action function | sfaction |
| Get a container | sfcontainer |
| Controller Template | sfcontroller |
| Controller Template | sfcontroller | 4.1+ |
| Create the Entity Manager Variable | sfem |
| Throw an Access Denied Exception | sfexceptionaccessdenied |
| Throw a Not Found Exception | sfexceptionnotfound |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "symfony-snippets",
"displayName": "Symfony Snippets",
"description": "A simple package that's provides useful snippets for the latest versions of Symfony",
"version": "0.1.1",
"version": "0.1.2",
"publisher": "Cronos87",
"homepage": "https://github.com/Cronos87/vsc-symfony-snippets",
"bugs": {
Expand Down
8 changes: 4 additions & 4 deletions snippets/controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Create a new action": {
"prefix": "sfaction",
"body": [
"public function ${1:name}Action(${2:Request \\$request})",
"public function ${1:name}()",
"{",
" ${3:return \\$this->render('${4:index}.html.twig');}",
"}"
Expand All @@ -15,9 +15,9 @@
"Controller Template": {
"prefix": "sfcontroller",
"body": [
"namespace AppBundle\\\\Controller;\n",
"use Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\Controller;\n",
"class ${1:Name}Controller extends Controller",
"namespace App\\\\Controller;\n",
"use Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController;\n",
"class ${1:Name}Controller extends AbstractController",
"{",
" ${2}",
"}"
Expand Down