@@ -27,7 +27,7 @@ Previously known as [jalameta/router](https://github.com/jalameta/jps-router).
27
27
- [ Available Class Target] ( #available-class-target )
28
28
- [ Available Method Target] ( #available-method-target )
29
29
- [ Detailed Attribute Examples] ( #detailed-attribute-examples )
30
- - [ Auto Controller Injection] ( #auto-controller- injection )
30
+ - [ Auto Controller Injection] ( #auto-injection )
31
31
- [ Available Commands] ( #available-commands )
32
32
- [ yalr: install ] ( #yalrinstall )
33
33
- [ yalr: display ] ( #yalrdisplay )
@@ -119,17 +119,16 @@ return [
119
119
],
120
120
121
121
'web' => [
122
- /** @inject web **/
123
122
\App\Http\Routes\DefaultRoute::class,
124
123
],
125
124
'api' => [
126
- /** @inject api **/
125
+ //
127
126
],
128
127
129
128
// Auto-injection configuration for yalr:generate command
130
129
'injects' => [
131
- 'web' => ['app/Controllers/Web/'],
132
- 'api' => ['app/Controllers/Api/']
130
+ 'web' => ['app/Http/ Controllers/Web/'],
131
+ 'api' => ['app/Http/ Controllers/Api/']
133
132
],
134
133
];
135
134
```
@@ -591,12 +590,10 @@ Simply add controller classes to your route configuration, and YALR will determi
591
590
592
591
``` php
593
592
'web' => [
594
- /** @inject web **/
595
593
\App\Http\Routes\DefaultRoute::class,
596
594
\App\Http\Controllers\UserController::class,
597
595
],
598
596
'api' => [
599
- /** @inject api **/
600
597
\App\Http\Controllers\Api\PostController::class,
601
598
],
602
599
```
0 commit comments