Hi Rob, I second your question. And beyond the name I don't see why we need a "frame" to use "next": why not pass $next directly (as a callable)? Or if we want something that can be type-hinted then why not pass $next as a MiddlewareInterface?
Matthieu Le mardi 12 juillet 2016 16:26:42 UTC+2, Rob Allen a écrit : > > Hi, > > In the proposed PSR-15, there's a FrameInterface. > > Where did the word "Frame" come from and in what context is it used. It > means nothing to me and I don't think I'm alone in having no clue how I > would be able to infer that $frame might have a next() method. It's very > weird and I think it's a negative when looking at the function signature as > it's a meaningless word unless you know some back story that I clearly > don't? > > I would love an explanation as it looks to me like an area of confusion > for people new to writing middleware. > > For what it's worth, I don't especially mind the interface itself, though > I'm not sure what it adds other than more typing. It's the choice of name > that I'm questioning. > > Regards, > > Rob... > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/9e28e9b9-22fd-4105-8798-572f7f7e6ea7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
