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
5c48a20f
Commit
5c48a20f
authored
Jun 13, 2012
by
Christophe Coevoet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the phpdoc
parent
b355becd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
src/Silex/Application.php
src/Silex/Application.php
+8
-8
src/Silex/ControllerCollection.php
src/Silex/ControllerCollection.php
+14
-14
src/Silex/StringResponseConverter.php
src/Silex/StringResponseConverter.php
+1
-1
src/Silex/WebTestCase.php
src/Silex/WebTestCase.php
+1
-1
No files found.
src/Silex/Application.php
View file @
5c48a20f
...
...
@@ -178,7 +178,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
match
(
$pattern
,
$to
)
{
...
...
@@ -191,7 +191,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
get
(
$pattern
,
$to
)
{
...
...
@@ -204,7 +204,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
post
(
$pattern
,
$to
)
{
...
...
@@ -217,7 +217,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
put
(
$pattern
,
$to
)
{
...
...
@@ -230,7 +230,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
delete
(
$pattern
,
$to
)
{
...
...
@@ -366,7 +366,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param string $url The URL to redirect to
* @param integer $status The status code (302 by default)
*
* @see
Symfony\Component\HttpFoundation\
RedirectResponse
* @see RedirectResponse
*/
public
function
redirect
(
$url
,
$status
=
302
)
{
...
...
@@ -380,7 +380,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param integer $status The response status code
* @param array $headers An array of response headers
*
* @see S
ymfony\Component\HttpFoundation\S
treamedResponse
* @see StreamedResponse
*/
public
function
stream
(
$callback
=
null
,
$status
=
200
,
$headers
=
array
())
{
...
...
@@ -409,7 +409,7 @@ class Application extends \Pimple implements HttpKernelInterface, EventSubscribe
* @param integer $status The response status code
* @param array $headers An array of response headers
*
* @see
Symfony\Component\HttpFoundation\
JsonResponse
* @see JsonResponse
*/
public
function
json
(
$data
=
array
(),
$status
=
200
,
$headers
=
array
())
{
...
...
src/Silex/ControllerCollection.php
View file @
5c48a20f
...
...
@@ -31,8 +31,6 @@ class ControllerCollection
/**
* Constructor.
*
* @param Route $route
*/
public
function
__construct
()
{
...
...
@@ -47,7 +45,7 @@ class ControllerCollection
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
match
(
$pattern
,
$to
)
{
...
...
@@ -66,7 +64,7 @@ class ControllerCollection
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
get
(
$pattern
,
$to
)
{
...
...
@@ -79,7 +77,7 @@ class ControllerCollection
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
post
(
$pattern
,
$to
)
{
...
...
@@ -92,7 +90,7 @@ class ControllerCollection
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
put
(
$pattern
,
$to
)
{
...
...
@@ -105,7 +103,7 @@ class ControllerCollection
* @param string $pattern Matched route pattern
* @param mixed $to Callback that returns the response when matched
*
* @return
Silex\
Controller
* @return Controller
*/
public
function
delete
(
$pattern
,
$to
)
{
...
...
@@ -118,7 +116,7 @@ class ControllerCollection
* @param string $variable The variable name
* @param string $regexp The regexp to apply
*
* @return Controller $this The current Controller instance
* @return Controller
Collection
$this The current Controller instance
*/
public
function
assert
(
$variable
,
$regexp
)
{
...
...
@@ -137,7 +135,7 @@ class ControllerCollection
* @param string $variable The variable name
* @param mixed $default The default value
*
* @return Controller $this The current Controller instance
* @return Controller
Collection
$this The current Controller instance
*/
public
function
value
(
$variable
,
$default
)
{
...
...
@@ -156,7 +154,7 @@ class ControllerCollection
* @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 Controller
Collection
$this The current Controller instance
*/
public
function
convert
(
$variable
,
$callback
)
{
...
...
@@ -174,7 +172,7 @@ class ControllerCollection
*
* @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 Controller
Collection
$this The current Controller instance
*/
public
function
method
(
$method
)
{
...
...
@@ -190,7 +188,7 @@ class ControllerCollection
/**
* Sets the requirement of HTTP (no HTTPS) on this controller.
*
* @return Controller $this The current Controller instance
* @return Controller
Collection
$this The current Controller instance
*/
public
function
requireHttp
()
{
...
...
@@ -206,7 +204,7 @@ class ControllerCollection
/**
* Sets the requirement of HTTPS on this controller.
*
* @return Controller $this The current Controller instance
* @return Controller
Collection
$this The current Controller instance
*/
public
function
requireHttps
()
{
...
...
@@ -225,7 +223,7 @@ class ControllerCollection
*
* @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 Controller
Collection
$this The current Controller instance
*/
public
function
middleware
(
$callback
)
{
...
...
@@ -241,6 +239,8 @@ class ControllerCollection
/**
* Persists and freezes staged controllers.
*
* @param string $prefix
*
* @return RouteCollection A RouteCollection instance
*/
public
function
flush
(
$prefix
=
''
)
...
...
src/Silex/StringResponseConverter.php
View file @
5c48a20f
...
...
@@ -25,7 +25,7 @@ class StringResponseConverter
*
* @param string $response The response string
*
* @return A Response object
* @return
Response
A Response object
*/
public
function
convert
(
$response
)
{
...
...
src/Silex/WebTestCase.php
View file @
5c48a20f
...
...
@@ -36,7 +36,7 @@ abstract class WebTestCase extends \PHPUnit_Framework_TestCase
/**
* Creates the application.
*
* @return Symfony\Component\HttpKernel\HttpKernel
* @return
\
Symfony\Component\HttpKernel\HttpKernel
*/
abstract
public
function
createApplication
();
...
...
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