Rcls
1 min readMay 5, 2020

--

There is a small mistake in the article. You need to either use the fully qualified classname when you add the middleware:

$app->add(\App\Application\Middleware\JsonBodyParserMiddleware::class);o

or just import it on top:

use App\Application\Middleware\JsonBodyParserMiddleware;

--

--

Rcls
Rcls

Written by Rcls

Consultant, software architect and developer, freelance UI/UX designer, computer engineer, tech enthusiast, father.

Responses (1)