Skip to content

Instantly share code, notes, and snippets.

@pavelkucera
Created June 28, 2013 14:39
Show Gist options
  • Save pavelkucera/5885187 to your computer and use it in GitHub Desktop.
Save pavelkucera/5885187 to your computer and use it in GitHub Desktop.
How @Inject works in Nette (development only for now)
services:
- Some\Class
<?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