Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fprochazka/nette-autowireproperties
https://github.com/fprochazka/nette-autowireproperties
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fprochazka/nette-autowireproperties
- Owner: fprochazka
- License: other
- Created: 2012-12-19T11:42:17.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-21T13:52:53.000Z (almost 12 years ago)
- Last Synced: 2024-10-11T05:04:31.429Z (28 days ago)
- Language: PHP
- Homepage: http://forum.nette.org/cs/13084-presentery-property-lazy-autowire-na-steroidech#p93574
- Size: 109 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
# 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
```php
abstract class BasePresenter extends Nette\Application\UI\Presenter
{
use \Kdyby\AutowireProperties;}
```## Usage
```php
class ArticlePresenter extends BasePresenter
{
/**
* @autowire
* @var App\ArticleRepository
*/
protected $articleRepository;// ..
}
```