Skip to content

Commit 3b51b57

Browse files
author
knesmeyanov
committed
Fix provider code
1 parent 307828a commit 3b51b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/requests.ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ use Railt\Http\Factory;
9191
use Railt\Http\Provider\DataProvider;
9292

9393

94-
$provider = new DataProvider($_GET, $_POST))
94+
$provider = (new DataProvider($_GET, $_POST))
9595
->withContentType($_SERVER['CONTENT_TYPE'] ?? null)
9696
->withBody(file_get_contents('php://input'));
9797

9898

99-
foreach (new Factory($provider) as $request) {
99+
foreach (Factory::create($provider) as $request) {
100100
var_dump($request);
101101
}
102102
```

0 commit comments

Comments
 (0)