# Mezzio

**URL:** https://discourse.laminas.dev/c/questions/mezzio/7.md?page=2

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

**Page:** 3

---

## [Alias not working with mezzio-authentication-oauth2](https://discourse.laminas.dev/t/alias-not-working-with-mezzio-authentication-oauth2/2568)

<div class="topic-metadata">

**Author:** [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 7:48pm UTC](https://discourse.laminas.dev/t/alias-not-working-with-mezzio-authentication-oauth2/2568 "2021-10-28T19:48:50Z")

</div>

Hi, I am trying to get the oAuth2 working with a mezzio application using mezzio-authentication-oauth2. I can’t seem to get past an error: Too few arguments to function Mezzio\\Authentication\\AuthenticationMiddleware::…

---

## [ApplicationPipeline not found](https://discourse.laminas.dev/t/applicationpipeline-not-found/2494)

<div class="topic-metadata">

**Author:** [@FBurner](https://discourse.laminas.dev/u/FBurner)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 5:13am UTC](https://discourse.laminas.dev/t/applicationpipeline-not-found/2494 "2021-10-27T05:13:19Z")

</div>

I have updated to mezzio 3.0 due to php 8.0 update and now getting this error. The ApplicationPipeline is in the same namespace as the application factory but its not there \<?php declare(strict\_types=1); namespace Me…

---

## [Fill roles\[\] (UserInterface) after authenticate (oauth2)](https://discourse.laminas.dev/t/fill-roles-userinterface-after-authenticate-oauth2/2546)

<div class="topic-metadata">

**Author:** [@MichaelB](https://discourse.laminas.dev/u/MichaelB)\
**Replies:** 6\
**Last updated:** [October 20, 2021, 12:15pm UTC](https://discourse.laminas.dev/t/fill-roles-userinterface-after-authenticate-oauth2/2546 "2021-10-20T12:15:32Z")

</div>

Hi all, mezzio-authentication return a DefaultUser immutable for security reasons. I use it with mezzio-authentication-oauth2 and oauth2 do not use the roles\[\] attribute (UserInterface) but i need it to use mezzio-autho…

---

## [How to create a service which is not shared with other requests in mezzio-swoole](https://discourse.laminas.dev/t/how-to-create-a-service-which-is-not-shared-with-other-requests-in-mezzio-swoole/2538)

<div class="topic-metadata">

**Author:** [@Alban\_Hasa](https://discourse.laminas.dev/u/Alban_Hasa)\
**Replies:** 0\
**Last updated:** [October 9, 2021, 12:26pm UTC](https://discourse.laminas.dev/t/how-to-create-a-service-which-is-not-shared-with-other-requests-in-mezzio-swoole/2538 "2021-10-09T12:26:57Z")

</div>

Does any one have create a service in mezzio-swoole (e.g a database connection service) which is isolated for a request? I tried to create a custom mysqli class which extends mysqli in order to store some performance re…

---

## [Mezzio-csrf not working](https://discourse.laminas.dev/t/mezzio-csrf-not-working/2517)

<div class="topic-metadata">

**Author:** [@mh\_sam](https://discourse.laminas.dev/u/mh_sam)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 12:43pm UTC](https://discourse.laminas.dev/t/mezzio-csrf-not-working/2517 "2021-09-24T12:43:55Z")

</div>

hi everyone this is my code to use mezzio-csrf : //myHandler.php public function handle(ServerRequestInterface $request) : ResponseInterface { $guard = $request-\>getAttribute(CsrfMiddleware::GUARD\_ATTRIBUTE); …

---

## [Legacy app issue with loading URL parameters and incorrectly setting CSS mime type](https://discourse.laminas.dev/t/legacy-app-issue-with-loading-url-parameters-and-incorrectly-setting-css-mime-type/2473)

<div class="topic-metadata">

**Author:** [@dennis-fedco](https://discourse.laminas.dev/u/dennis-fedco)\
**Replies:** 3\
**Last updated:** [August 31, 2021, 6:21am UTC](https://discourse.laminas.dev/t/legacy-app-issue-with-loading-url-parameters-and-incorrectly-setting-css-mime-type/2473 "2021-08-31T06:21:56Z")

</div>

I am having an issue with setting up access to a legacy app via Mezzio. First, here is my set up: class LegacyApplicationFactory { public function \_\_invoke(ContainerInterface $container): MiddlewareInterface {…

---

## [Symfony DI container returns its config as ArrayObject which blocks doing anything with mezzio](https://discourse.laminas.dev/t/symfony-di-container-returns-its-config-as-arrayobject-which-blocks-doing-anything-with-mezzio/2472)

<div class="topic-metadata">

**Author:** [@carstep](https://discourse.laminas.dev/u/carstep)\
**Replies:** 0\
**Last updated:** [August 27, 2021, 2:06pm UTC](https://discourse.laminas.dev/t/symfony-di-container-returns-its-config-as-arrayobject-which-blocks-doing-anything-with-mezzio/2472 "2021-08-27T14:06:49Z")

</div>

Setup a mezzio skeleton with Symfony DI container and added swoole support (maybe not required). As I liked to test this setup with ./vendor/bin/laminas -v mezzio:swoole:start one typical error message popped up \[Webmo…

---

## [Legacy App - do I rewrite using Mezzio stack, or do I use Mezzio to run the legacy app separately?](https://discourse.laminas.dev/t/legacy-app-do-i-rewrite-using-mezzio-stack-or-do-i-use-mezzio-to-run-the-legacy-app-separately/2464)

<div class="topic-metadata">

**Author:** [@dennis-fedco](https://discourse.laminas.dev/u/dennis-fedco)\
**Replies:** 5\
**Last updated:** [August 26, 2021, 9:15pm UTC](https://discourse.laminas.dev/t/legacy-app-do-i-rewrite-using-mezzio-stack-or-do-i-use-mezzio-to-run-the-legacy-app-separately/2464 "2021-08-26T21:15:39Z")

</div>

I have a legacy app that was built on top of an older-version OsTicket. OsTicket is essentially its own framework with authentication, authorization, usernames, session handling, etc. with all the legacy artifacts such …

---

## [API tools or Mezzio For Complex API system](https://discourse.laminas.dev/t/api-tools-or-mezzio-for-complex-api-system/2439)

<div class="topic-metadata">

**Author:** [@vigcraig](https://discourse.laminas.dev/u/vigcraig)\
**Replies:** 3\
**Last updated:** [August 17, 2021, 7:46pm UTC](https://discourse.laminas.dev/t/api-tools-or-mezzio-for-complex-api-system/2439 "2021-08-17T19:46:38Z")

</div>

Hi, I am starting on a new project which will be a complex Restful API system. It will be using a different Json standard to Json/Hal. I am very familiar with API tools and have used it since the Apigility days, so I …

---

## [Create API for mobile App backend with Mezzio \[Help\]](https://discourse.laminas.dev/t/create-api-for-mobile-app-backend-with-mezzio-help/2261)

<div class="topic-metadata">

**Author:** [@MichaelB](https://discourse.laminas.dev/u/MichaelB)\
**Replies:** 1\
**Last updated:** [August 16, 2021, 6:48pm UTC](https://discourse.laminas.dev/t/create-api-for-mobile-app-backend-with-mezzio-help/2261 "2021-08-16T18:48:19Z")

</div>

Hi, I need to create a API backend for my mobile app (flutter). This API need oauth2 authentication and some endpoints, i read oauth2.thephpleague.com and have to use “Authorization Code Grant with PKCE” (“Password Gra…

---

## [Mezzio-swoole: got ServiceNotFoundException when using navigation component](https://discourse.laminas.dev/t/mezzio-swoole-got-servicenotfoundexception-when-using-navigation-component/2280)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 16\
**Last updated:** [July 22, 2021, 6:42am UTC](https://discourse.laminas.dev/t/mezzio-swoole-got-servicenotfoundexception-when-using-navigation-component/2280 "2021-07-22T06:42:39Z")

</div>

In my mezzio-swoole testing project. I followed steps: use the command to install navigation: composer require laminas/laminas-navigation then added configuration in config/autoload/global.php as: then added t…

---

## [How to make mezzio-swoole serve long time and stable](https://discourse.laminas.dev/t/how-to-make-mezzio-swoole-serve-long-time-and-stable/2107)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 2:47am UTC](https://discourse.laminas.dev/t/how-to-make-mezzio-swoole-serve-long-time-and-stable/2107 "2021-07-22T02:47:14Z")

</div>

Hello, I want to know how to use mezzio-swoole keeping a daemon as a long time server? the following command can run a temporary server, but it will break down when my client terminal disconnect with my server: $ ./ven…

---

## [SQL errors with OAuth authentication with laminas-authentication-oauth](https://discourse.laminas.dev/t/sql-errors-with-oauth-authentication-with-laminas-authentication-oauth/2288)

<div class="topic-metadata">

**Author:** [@patman](https://discourse.laminas.dev/u/patman)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 2:42am UTC](https://discourse.laminas.dev/t/sql-errors-with-oauth-authentication-with-laminas-authentication-oauth/2288 "2021-07-22T02:42:19Z")

</div>

Hi there, long story short i wanted to get started with mezzio/laminas so i decided to take a peak and build a simple rest API. I found myself quickly setting up and adapting to mezzio, great. First thing i needed is au…

---

## [Is it possible and necessary to build mysql connection pool in mezzio-swoole](https://discourse.laminas.dev/t/is-it-possible-and-necessary-to-build-mysql-connection-pool-in-mezzio-swoole/2255)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 6\
**Last updated:** [June 28, 2021, 1:09am UTC](https://discourse.laminas.dev/t/is-it-possible-and-necessary-to-build-mysql-connection-pool-in-mezzio-swoole/2255 "2021-06-28T01:09:45Z")

</div>

Hello, I introduced the Mezzio-swoole to my workmate, he asked me whether Mezzio-swoole has implement the mysql connection pool , I check through the Mezzio-swoole document, and did not find it. Any body knows about thi…

---

## [Mezzio to gradually move away from MVC](https://discourse.laminas.dev/t/mezzio-to-gradually-move-away-from-mvc/2210)

<div class="topic-metadata">

**Author:** [@jacoby149](https://discourse.laminas.dev/u/jacoby149)\
**Replies:** 0\
**Last updated:** [March 27, 2021, 2:12pm UTC](https://discourse.laminas.dev/t/mezzio-to-gradually-move-away-from-mvc/2210 "2021-03-27T14:12:13Z")

</div>

What is the strategy to gradually move away from laminas-mvc to something more modern using Mezzio? My company wants a modern system using api backend and a react frontend. I’m thinking that: the old MVC project coul…

---

## [Use of laminas-authorization in a Mezzio application](https://discourse.laminas.dev/t/use-of-laminas-authorization-in-a-mezzio-application/2371)

<div class="topic-metadata">

**Author:** [@fgsl](https://discourse.laminas.dev/u/fgsl)\
**Replies:** 0\
**Last updated:** [June 18, 2021, 8:54pm UTC](https://discourse.laminas.dev/t/use-of-laminas-authorization-in-a-mezzio-application/2371 "2021-06-18T20:54:58Z")

</div>

I tried to use CredentialTreatmentAdapter for authentication in a Mezzio application. Some error occurs into method authentication() and no Exception is generated. Nothing appears in error log. Application aborts and web…

---

## [The default valie of Quick start of mezzio](https://discourse.laminas.dev/t/the-default-valie-of-quick-start-of-mezzio/2348)

<div class="topic-metadata">

**Author:** [@smj320](https://discourse.laminas.dev/u/smj320)\
**Replies:** 4\
**Last updated:** [June 13, 2021, 2:10am UTC](https://discourse.laminas.dev/t/the-default-valie-of-quick-start-of-mezzio/2348 "2021-06-13T02:10:16Z")

</div>

Hi. I try quick start of mezzio. https://docs.mezzio.dev/mezzio/v3/getting-started/quick-start/ When I install default, the choice is no template engine\[n\]. Which template engine do you want to use? \[1\] Plates (s…

---

## [Mezzio-swoole project works abnormal when treated as mezzio-no-swoole running on Win10](https://discourse.laminas.dev/t/mezzio-swoole-project-works-abnormal-when-treated-as-mezzio-no-swoole-running-on-win10/2320)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 6:14am UTC](https://discourse.laminas.dev/t/mezzio-swoole-project-works-abnormal-when-treated-as-mezzio-no-swoole-running-on-win10/2320 "2021-05-27T06:14:05Z")

</div>

I am not a smart programmer, not working on MAC or linux desktop system. I just do my job on Windows 10 system. It is very hard to run a swoole on a pure windows 10 system. I dont’t want to run docker or vmware stuff on …

---

## [In mezzio-swoole, which kind of format it shows for table, model?](https://discourse.laminas.dev/t/in-mezzio-swoole-which-kind-of-format-it-shows-for-table-model/2293)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 6\
**Last updated:** [May 25, 2021, 6:57am UTC](https://discourse.laminas.dev/t/in-mezzio-swoole-which-kind-of-format-it-shows-for-table-model/2293 "2021-05-25T06:57:10Z")

</div>

Against laminas-mvc, mezzio has not a complicate skeleton. There is no rule to set a certain folder for form, tablegateway, entity etc. If I wanna to build a reusable table model, which kind should I choose, middleware,…

---

## [Laminas DI and InputFilterPluginManager](https://discourse.laminas.dev/t/laminas-di-and-inputfilterpluginmanager/2309)

<div class="topic-metadata">

**Author:** [@disasterdrop](https://discourse.laminas.dev/u/disasterdrop)\
**Replies:** 0\
**Last updated:** [May 19, 2021, 11:44am UTC](https://discourse.laminas.dev/t/laminas-di-and-inputfilterpluginmanager/2309 "2021-05-19T11:44:24Z")

</div>

Hi, i’m wondering how the laminas/di AOT Factories could be working with the InputFilterPluginManager. I’m having troubles to get it running in my mezzio application, because the init() method will not be called when t…

---

## [About template using in a 99% html web application](https://discourse.laminas.dev/t/about-template-using-in-a-99-html-web-application/2281)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 1\
**Last updated:** [April 29, 2021, 10:52am UTC](https://discourse.laminas.dev/t/about-template-using-in-a-99-html-web-application/2281 "2021-04-29T10:52:42Z")

</div>

when I installed the mezzio via the following commmand, I got a skeleton. composer create-project mezzio/mezzio-skeleton mezzio I thought it is a little complicate :slight\_smile:

---

## [The same project, mysql encounter error when use swoole---Solved!](https://discourse.laminas.dev/t/the-same-project-mysql-encounter-error-when-use-swoole-solved/2275)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 3\
**Last updated:** [April 29, 2021, 8:45am UTC](https://discourse.laminas.dev/t/the-same-project-mysql-encounter-error-when-use-swoole-solved/2275 "2021-04-29T08:45:02Z")

</div>

The same project, tototally the same. When I start-up with command: $ composer run --timeout=86400 serve It works ok, I wanna a single record printed, just like: pls visit http://139.162.123.197:9502/ for testin…

---

## [Questions about mezzio-swoole, everytime I refresh the page, title reduplicated one more time!](https://discourse.laminas.dev/t/questions-about-mezzio-swoole-everytime-i-refresh-the-page-title-reduplicated-one-more-time/2121)

<div class="topic-metadata">

**Author:** [@jobsfan](https://discourse.laminas.dev/u/jobsfan)\
**Replies:** 14\
**Last updated:** [March 29, 2021, 11:14am UTC](https://discourse.laminas.dev/t/questions-about-mezzio-swoole-everytime-i-refresh-the-page-title-reduplicated-one-more-time/2121 "2021-03-29T11:14:36Z")

</div>

Pls check this webiste http://www.mm3bb.com/ It is a brand-new skeleton, every time I refresh the home page, the title repeat one more time. like \<title\>Home - mezzio\</title\> 1st time visit \<title\>Home - mezzio - Ho…

---

## [flashNow() in mezzio-flash](https://discourse.laminas.dev/t/flashnow-in-mezzio-flash/2136)

<div class="topic-metadata">

**Author:** [@timdev](https://discourse.laminas.dev/u/timdev)\
**Replies:** 2\
**Last updated:** [March 27, 2021, 6:23pm UTC](https://discourse.laminas.dev/t/flashnow-in-mezzio-flash/2136 "2021-03-27T18:23:05Z")

</div>

I’m slightly confused by the behavior/implementation of the flashNow() method in mezzio-flash. My context is mezzio-flash on top of mezzio-session using psr7-session/storageless\[-mezzio-integration\]. The behavior I’m ge…

---

## [Mezzio swoole migration and stateless services](https://discourse.laminas.dev/t/mezzio-swoole-migration-and-stateless-services/2194)

<div class="topic-metadata">

**Author:** [@sergio\_tabanelli](https://discourse.laminas.dev/u/sergio_tabanelli)\
**Replies:** 0\
**Last updated:** [March 20, 2021, 11:23am UTC](https://discourse.laminas.dev/t/mezzio-swoole-migration-and-stateless-services/2194 "2021-03-20T11:23:55Z")

</div>

Hi all! I am experimenting a porting to swoole of our company php framework, built around mezzio. Reading the documentation for mezzio-swoole I’m a little concerned about the need for stateless services. Refactor of all…

---

## [How to use Filesystem Cache in Mezzio?](https://discourse.laminas.dev/t/how-to-use-filesystem-cache-in-mezzio/2190)

<div class="topic-metadata">

**Author:** [@drakulitka](https://discourse.laminas.dev/u/drakulitka)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 10:43am UTC](https://discourse.laminas.dev/t/how-to-use-filesystem-cache-in-mezzio/2190 "2021-03-17T10:43:57Z")

</div>

namespace Auth\\Service\\Factory; use Auth\\Service\\RbacManager; use Doctrine\\ORM\\EntityManager; use Laminas\\Cache\\Storage\\Adapter\\Filesystem; use Laminas\\Cache\\Storage\\Plugin\\ExceptionHandler; use Laminas\\Cache\\Storage\\Pl…

---

## [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…

---

## [When do I need FactoryInterfaces?](https://discourse.laminas.dev/t/when-do-i-need-factoryinterfaces/2131)

<div class="topic-metadata">

**Author:** [@hjerti](https://discourse.laminas.dev/u/hjerti)\
**Replies:** 2\
**Last updated:** [February 25, 2021, 1:17pm UTC](https://discourse.laminas.dev/t/when-do-i-need-factoryinterfaces/2131 "2021-02-25T13:17:04Z")

</div>

Hey there, I have a question, I am learning mezzio and programming in general for no long time. So I had the task to create some factorys in my code. A co-worker showed me how and one time he implemented the FactoryInte…

---

## [Not able to fix .htaccess for Mezzio](https://discourse.laminas.dev/t/not-able-to-fix-htaccess-for-mezzio/1994)

<div class="topic-metadata">

**Author:** [@Blacktornado](https://discourse.laminas.dev/u/Blacktornado)\
**Replies:** 8\
**Last updated:** [December 14, 2020, 7:13pm UTC](https://discourse.laminas.dev/t/not-able-to-fix-htaccess-for-mezzio/1994 "2020-12-14T19:13:52Z")

</div>

Hello Everyone, I am currently trying to use .htaccess file for one of my Mezzio project, but unfortunately not working. However there is another project that runs on Php Slim framework and the .htaccess is working there…

---

## [Does anyone have a good test component for integration test in expressive?](https://discourse.laminas.dev/t/does-anyone-have-a-good-test-component-for-integration-test-in-expressive/851)

<div class="topic-metadata">

**Author:** [@Moln](https://discourse.laminas.dev/u/Moln)\
**Replies:** 8\
**Last updated:** [December 9, 2020, 7:23am UTC](https://discourse.laminas.dev/t/does-anyone-have-a-good-test-component-for-integration-test-in-expressive/851 "2020-12-09T07:23:11Z")

</div>

Expressive have not a integration test component like as zend-test. So I wrote this component zfegg/expressive-test. Usage: public function testHome() { // $response = $this-\>runApp('GET', '/'); // Test…

[Previous page](https://discourse.laminas.dev/c/questions/mezzio/7.md?page=1)

[Next page](https://discourse.laminas.dev/c/questions/mezzio/7.md?page=3)
