Created
June 28, 2013 14:39
-
-
Save pavelkucera/5885187 to your computer and use it in GitHub Desktop.
How @Inject works in Nette (development only for now)
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
services: | |
- Some\Class |
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
<?php | |
class MyPresenter extends \Nette\Application\UI\Presenter | |
{ | |
/** | |
* @var \Some\Class | |
* @inject | |
*/ | |
public $dependency; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment