PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
README.md
composer.json
license.md

README.md

Autowire Properties experiment for Nette Framework

You shouldn't be using this, if you don't know what youre doing!

discussion: http://forum.nette.org/cs/13084-presentery-property-lazy-autowire-na-steroidech#p93574

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;

    // ..
}