Skip to content

Commit e2197a1

Browse files
committed
update readme
1 parent a1b5e35 commit e2197a1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

readme.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Previously known as [jalameta/router](https://github.com/jalameta/jps-router).
2727
- [Available Class Target](#available-class-target)
2828
- [Available Method Target](#available-method-target)
2929
- [Detailed Attribute Examples](#detailed-attribute-examples)
30-
- [Auto Controller Injection](#auto-controller-injection)
30+
- [Auto Controller Injection](#auto-injection)
3131
- [Available Commands](#available-commands)
3232
- [yalr:install](#yalrinstall)
3333
- [yalr:display](#yalrdisplay)
@@ -119,17 +119,16 @@ return [
119119
],
120120

121121
'web' => [
122-
/** @inject web **/
123122
\App\Http\Routes\DefaultRoute::class,
124123
],
125124
'api' => [
126-
/** @inject api **/
125+
//
127126
],
128127

129128
// Auto-injection configuration for yalr:generate command
130129
'injects' => [
131-
'web' => ['app/Controllers/Web/'],
132-
'api' => ['app/Controllers/Api/']
130+
'web' => ['app/Http/Controllers/Web/'],
131+
'api' => ['app/Http/Controllers/Api/']
133132
],
134133
];
135134
```
@@ -591,12 +590,10 @@ Simply add controller classes to your route configuration, and YALR will determi
591590

592591
```php
593592
'web' => [
594-
/** @inject web **/
595593
\App\Http\Routes\DefaultRoute::class,
596594
\App\Http\Controllers\UserController::class,
597595
],
598596
'api' => [
599-
/** @inject api **/
600597
\App\Http\Controllers\Api\PostController::class,
601598
],
602599
```

0 commit comments

Comments
 (0)