New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render now returns ResponseInterface instead of string #54
Conversation
xepozz
commented
Feb 13, 2020
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ❌ |
Breaks BC? | ❌ |
Tests pass? | ❌ |
Fixed issues | #52 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much cleaner!
I think it is wrong that the render method returns a |
I was thinking the same before taking into account that it's controller's render method, not a method of a View. |
It is also worth considering that this controller does not implement |
What if you need headers as well? In case of |
Just like now, when we can manually create a Response. But what if the Action specified in the ActionCaller returns a string rather than ResponseInterface? |
You still can do it, just render it manually $content = $this->view->render($view, $parameters, $this);
$bodyText = $this->renderContent($content); |