Skip to content

Commit

Permalink
Do not render responses for renderable interfaces, as will be handled…
Browse files Browse the repository at this point in the history
… within the Cubex Response class, and gives getOriginalResponse, more meaning.
  • Loading branch information
bajb committed Nov 21, 2014
1 parent 9320840 commit 26fa01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kernel/CubexKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ protected function _processResponse(

if($value instanceof RenderableInterface)
{
return new CubexResponse($value->render());
return new CubexResponse($value);
}

if(is_callable($value))
Expand Down

0 comments on commit 26fa01e

Please sign in to comment.