library nette-autowire-properties
Lazy-Autowire of properties for Nette PresenterComponents.
hosiplan/nette-autowire-properties
Lazy-Autowire of properties for Nette PresenterComponents.
- Friday, December 21, 2012
- by fprochazka
- Repository
- 3 Watchers
- 9 Stars
- 706 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 2 Versions
- 0 % Grown
Autowire Properties experiment for Nette Framework
You shouldn't be using this, if you don't know what youre doing!, (*1)
discussion: http://forum.nette.org/cs/13084-presentery-property-lazy-autowire-na-steroidech#p93574, (*2)
Include in application
abstract class BasePresenter extends Nette\Application\UI\Presenter
{
use \Kdyby\AutowireProperties;
}
Usage
class ArticlePresenter extends BasePresenter
{
/**
* @autowire
* @var App\ArticleRepository
*/
protected $articleRepository;
// ..
}
dev-master
9999999-dev
Lazy-Autowire of properties for Nette PresenterComponents.
Sources
Download
GPL-3.0
BSD-3-Clause
GPL-2.0
The Requires
nette
v0.1.1
0.1.1.0
Lazy-Autowire of properties for Nette PresenterComponents.
Sources
Download
GPL-3.0
BSD-3-Clause
GPL-2.0
The Requires
nette