nette/nette — pull request #839 by HosipLan (2012-10-29 22:26:15+00:00)
Title: Config: generating of factories using given interface

Purpose of this pullrequest is to be able to write only class and factory interface

```php
class Article {
public $title;
function __construct($title) { $this->title = $title; }
}
interface IArticleFactory {
/** @return Article */
function create($title);
}
```

with simple config

```yaml
factories:
article:
class: Article
factory: IArticleFactory
arguments: [%title%]
parameters: [title]
```

and Nette will generate the boilerplate.

Please review @dg, @majkl578, @vrtak-cz, @juzna, ...