Skip to content

Instantly share code, notes, and snippets.

@janpecha
Created September 5, 2012 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janpecha/3639230 to your computer and use it in GitHub Desktop.
Save janpecha/3639230 to your computer and use it in GitHub Desktop.
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