Questions tagged [mezzio]

Mezzio is a web application and API framework written in PHP and using standards-based middleware.

Mezzio, formerly Expressive, is a web application and API framework written in PHP and using standards-based middleware. It consumes request handlers and middleware, using HTTP messages.

Mezzio is a sub-project of the project.

123 questions
0
votes
1 answer

nullable not being read in Doctrine

I have a Zend Expressive project from Skeleton app. Also, the database NOT NULL is set for each of the fields that I have set nullable on. I think it might have something to do with it not reading the annotations. I had issues getting the…
Bluebaron
  • 2,289
  • 2
  • 27
  • 37
0
votes
0 answers

empty array on getParsedBody

I have a ServerRequestInterface $request and when I call $body = $request->getBody()->getContents() it returns {"email":"a@b.com","password":"password"}, but $request->getParsedBody() returns an empty array[0]. This is a POST request. Anyone know…
Bluebaron
  • 2,289
  • 2
  • 27
  • 37
0
votes
2 answers

Zend Expressive nested application

I'm trying to use zend expressive nested application, so I'm following this blog post : https://framework.zend.com/blog/2017-03-15-nested-middleware-in-expressive.html The problem seems to be in the Middleware factory: class…
benomite
  • 848
  • 7
  • 23
0
votes
1 answer

How do I configure a custom form element with zend expressive

In my ZF2 Application, I had several custom form Elements with an injected database Adapter. I put the configuration in the module.php file with a method, like this: public function getFormElementConfig() { …
kaufmajo
  • 13
  • 4
0
votes
1 answer

Could not find key "csrf" in tree at Zend Expressive project

I got a Zend Expressive application running with Docker. Normally this project runs, but when I added it to a bitbucket repository, and then git cloned it, built with docker, and then went to localhost:8000 it gave me this error: [![enter image…
nullwriter
  • 785
  • 9
  • 34
0
votes
1 answer

How to use ZF2 Modules in Expressive?

I have a module in ZF2 (MVC), now can config to re-use with Expressive Middleware?
Ichte
  • 74
  • 1
  • 7
0
votes
1 answer

SQL Join in ZF3 Expressive - ResultSet does not give joined Columns

I'm trying to get a title out of a second table (by left-join) but my resultSet isn't delivering the column of the joined table. This is how my TableGateway looks like: public function fetchCourseListWithStudyprogram() { $select =…
moTHO.
  • 364
  • 3
  • 21
0
votes
1 answer

What is the correct way to show flash message in Zend Framework 2 Expressive

I'd like to setup flash message(slim/flash). I saw the reference here. I made the following middleware to register flash message. use Interop\Http\ServerMiddleware\DelegateInterface; use Zend\Diactoros\Response\RedirectResponse; function($request,…
ima0123
  • 85
  • 1
  • 10
0
votes
1 answer

Passing variables between Middlewares using zend-mvc

I'm trying to decipher how to properly blend variables between ZF3 Middleware under the latest release of zend-mvc. Imagine a route like this: 'sandwich-test' => [ 'type' => \Zend\Router\Http\Literal::class, 'options' => [ 'route' =>…
Saeven
  • 2,280
  • 1
  • 20
  • 33
0
votes
2 answers

How to deal with factory boilerplate once your project gets larger?

So I started working with a new framework called Zend Expressive which is the 2nd PSR-7 component based framework which should allow you to get code up and running fairly quick. Now my problem with expressive is that as your project gets larger your…
exts
  • 9,788
  • 4
  • 19
  • 21
0
votes
1 answer

pass parameter from pipeline middleware to factory class in zend expressive 2

I want to connect to different database according to URL. I try to set request attribute and get that attribute in *Factory.php. I edit…
ooghry
  • 11
  • 1
  • 2
0
votes
1 answer

PHP - Allowed memory size exhausted (Zend Framework Expressive)

I'm currently struggling because of a new action in my zend expressive project. Can someone tell me, where to look at? I tried to comment out all the code in the new action but I always keep getting the following error for the route of this new…
moTHO.
  • 364
  • 3
  • 21
0
votes
1 answer

zend expressive - middleware checks if there is a next one available?

In my routes.global.php I've this one in routes. [ 'name' => 'test', 'path' => '/test', 'middleware' => [App\Action\Test1Action::class, App\Action\Test2Action::class], 'allowed_methods' => ['GET'], ], And…
sparkmix
  • 2,157
  • 3
  • 25
  • 33
0
votes
1 answer

Call to undefined function Zend\Mail\Header\iconv_mime_decode()

Currently I'm developing an application with Zend Expressive. I'm using zend-mail to send a register email. However, here's the code:
Unreality
  • 3
  • 5
0
votes
1 answer

Pass stream wrapped by Zend Diactoros PhpInputStream (PSR-7 StreamInterface) to fopen-like function?

I have to write something to process an XML document sent via POST. The document has base-64 encoded binaries inside so the request can be quite large. This works: $document = simplexml_load_file('php://input'); But I am using the Zend Diactoros…
Pocketsand
  • 1,261
  • 10
  • 15
1 2 3
8 9