# \#middleware

**URL:** https://discourse.laminas.dev/tag/middleware/17.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [The process of using the Middleware](https://discourse.laminas.dev/t/the-process-of-using-the-middleware/2746)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 6\
**Last updated:** [March 2, 2023, 7:12am UTC](https://discourse.laminas.dev/t/the-process-of-using-the-middleware/2746 "2023-03-02T07:12:42Z")

</div>

Hello everyone I read the MVC-Middleware document and run simple middleware to check user authentication. First, I understand, after running the middleware step in the next step handler should run as a single action co…

---

## [Question about router, Middleware and handler](https://discourse.laminas.dev/t/question-about-router-middleware-and-handler/2813)

<div class="topic-metadata">

**Author:** [@voltan](https://discourse.laminas.dev/u/voltan)\
**Replies:** 0\
**Last updated:** [March 14, 2022, 6:19am UTC](https://discourse.laminas.dev/t/question-about-router-middleware-and-handler/2813 "2022-03-14T06:19:49Z")

</div>

Hello I worked on some modules via laminas MVC and Middleware, I needed some parameters like validator name for request or permission for each handler to manage RBAC and same. I put all of them in route default options…

---

## [How to use InputFilter in middleware Mezzio?](https://discourse.laminas.dev/t/how-to-use-inputfilter-in-middleware-mezzio/2146)

<div class="topic-metadata">

**Author:** [@hangouh](https://discourse.laminas.dev/u/hangouh)\
**Replies:** 3\
**Last updated:** [March 2, 2021, 8:41am UTC](https://discourse.laminas.dev/t/how-to-use-inputfilter-in-middleware-mezzio/2146 "2021-03-02T08:41:18Z")

</div>

Hi guys! I’m trying to make a middleware with InputFilter in mezzio however I have had the following error: “Unable to resolve service “App\\InputFilter\\UserInputFilter” to a factory; are you certain you provided it duri…

---

## [How to call middleware PSR-15 within event listeners in zend framework 3 (zend-mvc)?](https://discourse.laminas.dev/t/how-to-call-middleware-psr-15-within-event-listeners-in-zend-framework-3-zend-mvc/1094)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 9\
**Last updated:** [October 11, 2019, 3:09pm UTC](https://discourse.laminas.dev/t/how-to-call-middleware-psr-15-within-event-listeners-in-zend-framework-3-zend-mvc/1094 "2019-10-11T15:09:30Z")

</div>

Hi, guys! Here https://docs.zendframework.com/zend-mvc/cookbook/middleware-in-listeners/ are docs about how to use middleware PSR-7 within event listeners. There is example of middleware with \_\_invoke() method of middle…

---

## [How can I test my Middleware?](https://discourse.laminas.dev/t/how-can-i-test-my-middleware/1201)

<div class="topic-metadata">

**Author:** [@nepster-web](https://discourse.laminas.dev/u/nepster-web)\
**Replies:** 1\
**Last updated:** [September 26, 2019, 7:27pm UTC](https://discourse.laminas.dev/t/how-can-i-test-my-middleware/1201 "2019-09-26T19:27:14Z")

</div>

In my handlers I return JsonResponse For example: public function handle(ServerRequestInterface $request) : ResponseInterface { $data = \[ // ... \]; return new JsonResponse($data); } Then I have a Re…

---

## [Does exist some tutorial about zend-stratigility and 'MiddlewareListener'?](https://discourse.laminas.dev/t/does-exist-some-tutorial-about-zend-stratigility-and-middlewarelistener/1178)

<div class="topic-metadata">

**Author:** [@testuser](https://discourse.laminas.dev/u/testuser)\
**Replies:** 4\
**Last updated:** [September 6, 2019, 10:53am UTC](https://discourse.laminas.dev/t/does-exist-some-tutorial-about-zend-stratigility-and-middlewarelistener/1178 "2019-09-06T10:53:49Z")

</div>

Here https://github.com/zendframework/zend-mvc/blob/master/src/Application.php#L64 is the mention of ‘MiddlewareListener’. Can somebody give me some links on tutorials with examples of using zend-stratigility and ‘Middle…

---

## [Versioning psr-7 apps](https://discourse.laminas.dev/t/versioning-psr-7-apps/719)

<div class="topic-metadata">

**Author:** [@marcguyer](https://discourse.laminas.dev/u/marcguyer)\
**Replies:** 3\
**Last updated:** [April 15, 2019, 12:29pm UTC](https://discourse.laminas.dev/t/versioning-psr-7-apps/719 "2019-04-15T12:29:28Z")

</div>

Hey y’all. I’ve written a middleware package intended to manage API versioning. It’s inspired somewhat by zfcampus/zf-versioning but for Expressive and other PSR-7 apps. Before I go further, I’m looking for feedback. I s…

---

## [What is the best approach for using zend-navigation (with Acl) and AuthorizationMiddleware](https://discourse.laminas.dev/t/what-is-the-best-approach-for-using-zend-navigation-with-acl-and-authorizationmiddleware/745)

<div class="topic-metadata">

**Author:** [@shishi666](https://discourse.laminas.dev/u/shishi666)\
**Replies:** 4\
**Last updated:** [September 25, 2018, 1:07pm UTC](https://discourse.laminas.dev/t/what-is-the-best-approach-for-using-zend-navigation-with-acl-and-authorizationmiddleware/745 "2018-09-25T13:07:23Z")

</div>

Hy, for one of my projects I would like to use zend-navigation with Acl and an authorization middleware. But despite all my attempts I can not do it and at the same time could you tell me if it’s the right approach. Ab…

---

## [PSR-15 compatibility issues and proposal](https://discourse.laminas.dev/t/psr-15-compatibility-issues-and-proposal/378)

<div class="topic-metadata">

**Author:** [@matthew](https://discourse.laminas.dev/u/matthew)\
**Replies:** 12\
**Last updated:** [December 7, 2017, 2:11pm UTC](https://discourse.laminas.dev/t/psr-15-compatibility-issues-and-proposal/378 "2017-12-07T14:11:42Z")

</div>

A number of repositories have pull requests in place to use webimpress/http-middleware-compatibility in order to allow usage with the various iterations of the PSR-15 specification; this package provides polyfill support…

---

## [Authentication and authorization middleware](https://discourse.laminas.dev/t/authentication-and-authorization-middleware/282)

<div class="topic-metadata">

**Author:** [@enrico](https://discourse.laminas.dev/u/enrico)\
**Replies:** 0\
**Last updated:** [September 14, 2017, 4:45pm UTC](https://discourse.laminas.dev/t/authentication-and-authorization-middleware/282 "2017-09-14T16:45:16Z")

</div>

I proposed two RFCs about authentication and authorization. I realized there are many components involved in the usage of these 2 modules, so I decided to create a diagram to show in details the workflow of these 2 expr…
