You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .docs/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
## Application Form Factory
9
9
10
-
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.
10
+
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.
11
11
12
12
```yaml
13
13
extensions:
@@ -21,7 +21,7 @@ services:
21
21
forms.application.factory: My\FormFactory
22
22
```
23
23
24
-
Straightforward is to **inject** factory to presenter.
24
+
Straightforward way is to **inject** the factory in a presenter.
25
25
26
26
```php
27
27
namespace App\Presenters;
@@ -47,7 +47,7 @@ final class UserPresenter extends BasePresenter
47
47
}
48
48
```
49
49
50
-
Even better is to use factory in your custom form factory.
50
+
Even better is to use the factory in your custom form factory.
51
51
52
52
```php
53
53
namespace App\Forms;
@@ -80,7 +80,7 @@ final class UserFormFactory
80
80
81
81
## Standalone Form Factory
82
82
83
-
StandaloneFormFactory returns instance of Nette\Forms\Form. It should be used only if [nette/application](https://github.com/nette/application) is not installed.
83
+
StandaloneFormFactory returns instance of `Nette\Forms\Form`. It should be used only if [nette/application](https://github.com/nette/application) is not installed.
84
84
85
85
```yaml
86
86
extensions:
@@ -94,7 +94,7 @@ services:
94
94
forms.standalone.factory: My\FormFactory
95
95
```
96
96
97
-
Straightforward is to **inject** factory to presenter.
97
+
Straightforward way is to **inject** factory in a presenter.
98
98
99
99
```php
100
100
namespace App\Presenters;
@@ -120,7 +120,7 @@ final class UserPresenter extends BasePresenter
120
120
}
121
121
```
122
122
123
-
Even better is to use factory in your custom form factory.
123
+
Even better is to use the factory in your custom form factory.
0 commit comments