Gedit3 Snippets for Nette Framework
public function action${1:Default}() | |
{ | |
$0 | |
} | |
/** | |
* @param $(2:echo $1) | |
*/ | |
public function inject${1:Service}($<return $2> $${3:1/^.*$/\<0,l>}) | |
{ | |
if($this->$3) | |
{ | |
throw new Nette\InvalidStateException('$1 has already been set'); | |
} | |
$this->$3 = $$3; | |
} | |
$0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment