Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
97d15149
Commit
97d15149
authored
Nov 30, 2012
by
William Durand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getFormat() => getRequestFormat()
The `getFormat()` method is not the one used to get the request format.
parent
99ab5eb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
doc/providers/serializer.rst
doc/providers/serializer.rst
+1
-1
No files found.
doc/providers/serializer.rst
View file @
97d15149
...
...
@@ -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']->get
Request
Format();
if (!$page instanceof Page) {
$app->abort("No page found for id: $id");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment