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
04f0efb3
Commit
04f0efb3
authored
Nov 15, 2013
by
Peter Kokot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
array types defined
parent
71661809
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/Silex/Application.php
src/Silex/Application.php
+3
-3
No files found.
src/Silex/Application.php
View file @
04f0efb3
...
@@ -416,7 +416,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
...
@@ -416,7 +416,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
*
* @return StreamedResponse
* @return StreamedResponse
*/
*/
public
function
stream
(
$callback
=
null
,
$status
=
200
,
$headers
=
array
())
public
function
stream
(
$callback
=
null
,
$status
=
200
,
array
$headers
=
array
())
{
{
return
new
StreamedResponse
(
$callback
,
$status
,
$headers
);
return
new
StreamedResponse
(
$callback
,
$status
,
$headers
);
}
}
...
@@ -445,7 +445,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
...
@@ -445,7 +445,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
*
* @return JsonResponse
* @return JsonResponse
*/
*/
public
function
json
(
$data
=
array
(),
$status
=
200
,
$headers
=
array
())
public
function
json
(
$data
=
array
(),
$status
=
200
,
array
$headers
=
array
())
{
{
return
new
JsonResponse
(
$data
,
$status
,
$headers
);
return
new
JsonResponse
(
$data
,
$status
,
$headers
);
}
}
...
@@ -462,7 +462,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
...
@@ -462,7 +462,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*
*
* @throws \RuntimeException When the feature is not supported, before http-foundation v2.2
* @throws \RuntimeException When the feature is not supported, before http-foundation v2.2
*/
*/
public
function
sendFile
(
$file
,
$status
=
200
,
$headers
=
array
(),
$contentDisposition
=
null
)
public
function
sendFile
(
$file
,
$status
=
200
,
array
$headers
=
array
(),
$contentDisposition
=
null
)
{
{
return
new
BinaryFileResponse
(
$file
,
$status
,
$headers
,
true
,
$contentDisposition
);
return
new
BinaryFileResponse
(
$file
,
$status
,
$headers
,
true
,
$contentDisposition
);
}
}
...
...
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