File tree 3 files changed +56
-2
lines changed
vendor/Symfony/Component/HttpFoundation 3 files changed +56
-2
lines changed Original file line number Diff line number Diff line change 178
178
|
179
179
*/
180
180
181
- Event::fire ('laravel.done ' , array ($ response ));
181
+ Event::fire ('laravel.done ' , array ($ response ));
182
+
183
+ /*
184
+ |--------------------------------------------------------------------------
185
+ | Finish the request for PHP-FastCGI
186
+ |--------------------------------------------------------------------------
187
+ |
188
+ | Stopping the PHP process for PHP-FastCGI users to speed up some
189
+ | PHP queries. Acceleration is possible when there are actions in the
190
+ | process of script execution that do not affect server response.
191
+ | For example, saving the session in memcached can occur after the page
192
+ | has been formed and passed to a web server.
193
+ */
194
+
195
+ $ response ->foundation ->finish ();
Original file line number Diff line number Diff line change 1
1
<?php namespace Laravel ;
2
2
3
3
use Symfony \Component \HttpFoundation \ResponseHeaderBag ;
4
- use Symfony \Component \HttpFoundation \Response as FoundationResponse ;
4
+ use Symfony \Component \HttpFoundation \LaravelResponse as FoundationResponse ;
5
5
6
6
class Response {
7
7
Original file line number Diff line number Diff line change
1
+ <?php namespace Symfony \Component \HttpFoundation ;
2
+
3
+ /**
4
+ * Response represents an HTTP response.
5
+ *
6
+ * @author Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * @api
9
+ */
10
+ class LaravelResponse extends Response
11
+ {
12
+
13
+ /**
14
+ * Sends HTTP headers and content.
15
+ *
16
+ * @return Response
17
+ *
18
+ * @api
19
+ */
20
+ public function send ()
21
+ {
22
+ $ this ->sendHeaders ();
23
+ $ this ->sendContent ();
24
+
25
+ return $ this ;
26
+ }
27
+
28
+ /**
29
+ * Finishes the request for PHP-FastCGI
30
+ *
31
+ * @return void
32
+ */
33
+ public function finish ()
34
+ {
35
+ if (function_exists ('fastcgi_finish_request ' )) {
36
+ fastcgi_finish_request ();
37
+ }
38
+ }
39
+
40
+ }
You can’t perform that action at this time.
0 commit comments