Commit 1d30a61
committed
minor #13538 Fix documentation for a controllers with __invoke function in php routing (Ferror)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead.
Discussion
----------
Fix documentation for a controllers with __invoke function in php routing
Hi, the current docs tell that proper using controller with ```__invoke``` class should be implemented by:
```
// if the action is implemented as the __invoke() method of the
// controller class, you can skip the ', method_name]' part:
// ->controller([BlogController::class])
```
which is wrong. The implementation should be without ```[]``` brackets:
```
// ->controller(BlogController::class)
```
Commits
-------
bcb84de Fix documentation for a controllers with __invoke function in php routing1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments