Returning the result to TYPO3

At the end of the request, all changes to objects that have previously been made only in memory are made permanent (persisted). The persistence manager is called via $persistenceManager->persistAll(). The persistence manager walks through all used repositories and collects the new, the modified and the deleted objects. In this case, the persistence manager asks the blog repository about such objects. Since we only displayed blog messages, but made no changes, the persistence manager will not change anything at this time.

This is the end of this trip. The dispatcher returns the response to the Bootstrap, which will return the rendered HTML content to the TYPO3 framework. Then TYPO3 will add this to the output of the current page content.

$body = $response->getBody();
$body->rewind();
$content = $body->getContents();
// ...
return $content;

This section explains how the extension displays a list of blogs. The following chapter is about how to create a new post. It is about chaining several actions into a coherent sequence. It shows the possibilities of validation and deeper internals of Fluid.