Commit 97d15149 authored by William Durand's avatar William Durand

getFormat() => getRequestFormat()

The `getFormat()` method is not the one used to get the request format.
parent 99ab5eb9
......@@ -51,7 +51,7 @@ The ``SerializerServiceProvider`` provider provides a ``serializer`` service:
// assume a page_repository service exists that returns Page objects. The
// object returned has getters and setters exposing the state.
$page = $app['page_repository']->find($id);
$format = $app['request']->getFormat();
$format = $app['request']->getRequestFormat();
if (!$page instanceof Page) {
$app->abort("No page found for id: $id");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment