Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gappa authored and mabar committed Aug 21, 2018
1 parent 3ca1bb0 commit f9ff997
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## Application Form Factory

ApplicationFormFactory returns instance of Nette\Application\UI\Form. It should be used instead of StandaloneFormFactory if [nette/application](https://github.com/nette/application) is installed.
ApplicationFormFactory returns instance of `Nette\Application\UI\Form`. It should be used in place of StandaloneFormFactory if [nette/application](https://github.com/nette/application) is installed.

```yaml
extensions:
Expand All @@ -21,7 +21,7 @@ services:
forms.application.factory: My\FormFactory
```
Straightforward is to **inject** factory to presenter.
Straightforward way is to **inject** the factory in a presenter.
```php
namespace App\Presenters;
Expand All @@ -47,7 +47,7 @@ final class UserPresenter extends BasePresenter
}
```

Even better is to use factory in your custom form factory.
Even better is to use the factory in your custom form factory.

```php
namespace App\Forms;
Expand Down Expand Up @@ -80,7 +80,7 @@ final class UserFormFactory

## Standalone Form Factory

StandaloneFormFactory returns instance of Nette\Forms\Form. It should be used only if [nette/application](https://github.com/nette/application) is not installed.
StandaloneFormFactory returns instance of `Nette\Forms\Form`. It should be used only if [nette/application](https://github.com/nette/application) is not installed.

```yaml
extensions:
Expand All @@ -94,7 +94,7 @@ services:
forms.standalone.factory: My\FormFactory
```
Straightforward is to **inject** factory to presenter.
Straightforward way is to **inject** factory in a presenter.
```php
namespace App\Presenters;
Expand All @@ -120,7 +120,7 @@ final class UserPresenter extends BasePresenter
}
```

Even better is to use factory in your custom form factory.
Even better is to use the factory in your custom form factory.

```php
namespace App\Forms;
Expand Down

0 comments on commit f9ff997

Please sign in to comment.