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
2de6ff72
Commit
2de6ff72
authored
Jul 09, 2012
by
Adel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typehint
parent
11c3943d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/Silex/Route.php
src/Silex/Route.php
+10
-10
No files found.
src/Silex/Route.php
View file @
2de6ff72
...
...
@@ -31,7 +31,7 @@ class Route extends BaseRoute
* @param string $variable The variable name
* @param string $regexp The regexp to apply
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current route
instance
*/
public
function
assert
(
$variable
,
$regexp
)
{
...
...
@@ -46,7 +46,7 @@ class Route extends BaseRoute
* @param string $variable The variable name
* @param mixed $default The default value
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current Route
instance
*/
public
function
value
(
$variable
,
$default
)
{
...
...
@@ -61,7 +61,7 @@ class Route extends BaseRoute
* @param string $variable The variable name
* @param mixed $callback A PHP callback that converts the original value
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current Route
instance
*/
public
function
convert
(
$variable
,
$callback
)
{
...
...
@@ -77,7 +77,7 @@ class Route extends BaseRoute
*
* @param string $method The HTTP method name. Multiple methods can be supplied, delimited by a pipe character '|', eg. 'GET|POST'
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current Route
instance
*/
public
function
method
(
$method
)
{
...
...
@@ -87,9 +87,9 @@ class Route extends BaseRoute
}
/**
* Sets the requirement of HTTP (no HTTPS) on this
controller
.
* Sets the requirement of HTTP (no HTTPS) on this
Route
.
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current Route
instance
*/
public
function
requireHttp
()
{
...
...
@@ -99,9 +99,9 @@ class Route extends BaseRoute
}
/**
* Sets the requirement of HTTPS on this
controller
.
* Sets the requirement of HTTPS on this
Route
.
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current Route
instance
*/
public
function
requireHttps
()
{
...
...
@@ -115,7 +115,7 @@ class Route extends BaseRoute
*
* @param mixed $callback A PHP callback to be triggered when the Route is matched, just before the route callback
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current Route
instance
*/
public
function
before
(
$callback
)
{
...
...
@@ -131,7 +131,7 @@ class Route extends BaseRoute
*
* @param mixed $callback A PHP callback to be triggered after the route callback
*
* @return
Controller $this The current Controller
instance
* @return
Route $this The current Route
instance
*/
public
function
after
(
$callback
)
{
...
...
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