diff --git a/README.md b/README.md index 98dafec..cd8036c 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/package.json b/package.json index 67c4fdf..1cd641b 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/snippets/controller.json b/snippets/controller.json index ce5614b..73a9d00 100644 --- a/snippets/controller.json +++ b/snippets/controller.json @@ -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');}", "}" @@ -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}", "}"