My suggestion is to add to WebAppView
public function setDescription($description)
{
$this->description = $description;
}
And to DiscussionController
:
protected function getView(Request $request)
{
...
$view->setDescription($posts[0]->attributes->content);
...