Moved snippet sfa into Symfony snippets

This commit is contained in:
Mathew Attlee 2016-04-30 13:33:27 +01:00
parent 9bee55407f
commit a13199fb3c
2 changed files with 12 additions and 14 deletions

View File

@ -53,6 +53,18 @@ snip.rv = re.match(r'.*(?=\.)', fn).group()
}
endsnippet
snippet sfa "Symfony 2 Controller action"
/**
* @Route("/${1:route_name}", name="$1")
* @Template()
*/
public function $1Action($2)
{
$3
return ${4:array();}$0
}
endsnippet
snippet act "Symfony2 action" b
/**
* @Route("${3}", name="${4}")

View File

@ -330,7 +330,6 @@ if m:
*/
trait $1
{
public function ${3:someFunction}();$4
}
endsnippet
@ -352,19 +351,6 @@ snippet pc "Dumb debug helper in cli"
var_export($1);$0
endsnippet
# Symfony 2 based snippets
snippet sfa "Symfony 2 Controller action"
/**
* @Route("/${1:route_name}", name="$1")
* @Template()
*/
public function $1Action($2)
{
$3
return ${4:array();}$0
}
endsnippet
snippet inheritdoc "@inheritdoc docblock"
/**
* {@inheritdoc}