Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
52fded66
Commit
52fded66
authored
May 24, 2012
by
Koen Schmeets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extending Symfony's Response class and adding & calling the finish method
Signed-off-by:
Koen Schmeets
<
k.schmeets@gmail.com
>
parent
0f3e8eb6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
4 deletions
+42
-4
laravel.php
laravel/laravel.php
+1
-3
response.php
laravel/response.php
+1
-1
LaravelResponse.php
...ndor/Symfony/Component/HttpFoundation/LaravelResponse.php
+40
-0
No files found.
laravel/laravel.php
View file @
52fded66
...
...
@@ -180,6 +180,4 @@ $response->send();
Event
::
fire
(
'laravel.done'
,
array
(
$response
));
if
(
function_exists
(
'fastcgi_finish_request'
))
{
fastcgi_finish_request
();
}
\ No newline at end of file
$response
->
finish
();
\ No newline at end of file
laravel/response.php
View file @
52fded66
<?php
namespace
Laravel
;
use
Symfony\Component\HttpFoundation\ResponseHeaderBag
;
use
Symfony\Component\HttpFoundation\Response
as
FoundationResponse
;
use
Symfony\Component\HttpFoundation\
Laravel
Response
as
FoundationResponse
;
class
Response
{
...
...
laravel/vendor/Symfony/Component/HttpFoundation/LaravelResponse.php
0 → 100644
View file @
52fded66
<?php
namespace
Symfony\Component\HttpFoundation
;
/**
* Response represents an HTTP response.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
class
LaravelResponse
extends
Response
{
/**
* Sends HTTP headers and content.
*
* @return Response
*
* @api
*/
public
function
send
()
{
$this
->
sendHeaders
();
$this
->
sendContent
();
return
$this
;
}
/**
* Finishes the request for PHP-FastCGI
*
* @return void
*/
public
function
finish
()
{
if
(
function_exists
(
'fastcgi_finish_request'
))
{
fastcgi_finish_request
();
}
}
}
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