Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
2f66c978
Commit
2f66c978
authored
Feb 18, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
fe0b4b28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
laravel/response.php
+4
-1
laravel/routing/controller.php
+1
-1
No files found.
laravel/response.php
View file @
2f66c978
...
@@ -205,7 +205,10 @@ class Response {
...
@@ -205,7 +205,10 @@ class Response {
*/
*/
public
static
function
prepare
(
$response
)
public
static
function
prepare
(
$response
)
{
{
if
(
!
$response
instanceof
Response
)
$response
=
new
static
(
$response
);
if
(
!
$response
instanceof
Response
)
{
$response
=
new
static
(
$response
);
}
// We'll need to force the response to be a string before closing the session,
// We'll need to force the response to be a string before closing the session,
// since the developer may be using the session within a view, and we can't
// since the developer may be using the session within a view, and we can't
...
...
laravel/routing/controller.php
View file @
2f66c978
...
@@ -191,7 +191,7 @@ abstract class Controller {
...
@@ -191,7 +191,7 @@ abstract class Controller {
// Again, as was the case with route closures, if the controller "before"
// Again, as was the case with route closures, if the controller "before"
// filters return a response, it will be considered the response to the
// filters return a response, it will be considered the response to the
// request and the controller method will not be used
.
// request and the controller method will not be used.
$response
=
Filter
::
run
(
$filters
,
array
(),
true
);
$response
=
Filter
::
run
(
$filters
,
array
(),
true
);
if
(
is_null
(
$response
))
if
(
is_null
(
$response
))
...
...
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