Moved snippet sfa
into Symfony snippets
This commit is contained in:
parent
9bee55407f
commit
a13199fb3c
@ -53,6 +53,18 @@ snip.rv = re.match(r'.*(?=\.)', fn).group()
|
|||||||
}
|
}
|
||||||
endsnippet
|
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
|
snippet act "Symfony2 action" b
|
||||||
/**
|
/**
|
||||||
* @Route("${3}", name="${4}")
|
* @Route("${3}", name="${4}")
|
||||||
|
@ -330,7 +330,6 @@ if m:
|
|||||||
*/
|
*/
|
||||||
trait $1
|
trait $1
|
||||||
{
|
{
|
||||||
public function ${3:someFunction}();$4
|
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
@ -352,19 +351,6 @@ snippet pc "Dumb debug helper in cli"
|
|||||||
var_export($1);$0
|
var_export($1);$0
|
||||||
endsnippet
|
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"
|
snippet inheritdoc "@inheritdoc docblock"
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
Loading…
Reference in New Issue
Block a user