Skip to content

Commit 9476ca9

Browse files
authored
fix typo (#2326)
1 parent 769103f commit 9476ca9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ return [
6262
];
6363
```
6464

65-
6665
## Usage
6766

68-
6967
### Generate form request
7068

7169
Command:
@@ -82,8 +80,9 @@ class IndexController
8280
$request->input('foo');
8381
}
8482

85-
public function bar(RequestInterface $request){
86-
$factory = $this->container->get(\Hyperf\Validation\Contracts\Validation\Factory::class);
83+
public function bar(RequestInterface $request)
84+
{
85+
$factory = $this->container->get(\Hyperf\Validation\Contract\ValidatorFactoryInterface::class);
8786

8887
$factory->extend('foo', function ($attribute, $value, $parameters, $validator) {
8988
return $value == 'foo';

0 commit comments

Comments
 (0)