Created
September 5, 2012 16:14
-
-
Save janpecha/3639230 to your computer and use it in GitHub Desktop.
Gedit3 Snippets for Nette Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function action${1:Default}() | |
{ | |
$0 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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