1.

What do you mean by middleware in Slim Framework?

Answer»

A middleware is a kind of callable that accepts three types of arguments- PSR7 request object, a PSR7 RESPONSE object, and next middleware. A middleware can do all types of functions with objects. However, a middleware MUST INITIATE next middleware and CLEAR Response and Request objects as arguments.

If you are PREPARING for Slim interview, you can READ our slim framework tutorial for in-depth knowledge.



Discussion

No Comment Found