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
f263e64a
Commit
f263e64a
authored
Aug 18, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed markup in the doc
parent
9d8b3f5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/usage.rst
doc/usage.rst
+2
-2
No files found.
doc/usage.rst
View file @
f263e64a
...
...
@@ -355,7 +355,7 @@ through before and after filters. All you need to do is pass a closure::
});
The before filter has access to the current Request, and can short-circuit the
whole rendering by returning a Response:
whole rendering by returning a Response:
:
$app->before(function (Request $request) {
// redirect the user to the login screen if access to the Resource is protected
...
...
@@ -364,7 +364,7 @@ whole rendering by returning a Response:
}
});
The after filter has access to the Request and the Response:
The after filter has access to the Request and the Response:
:
$app->after(function (Request $request, Response $response) {
// tweak the Response
...
...
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