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
195f7862
Commit
195f7862
authored
Aug 25, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a few controller delegation issues.
parent
a0454966
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
laravel/controller.php
+1
-1
laravel/routing/handler.php
+1
-1
No files found.
laravel/controller.php
View file @
195f7862
...
...
@@ -11,7 +11,7 @@ abstract class Controller {
* @param Request $request
* @return mixed
*/
public
function
before
(
Request
$request
)
{}
public
function
before
(
$request
)
{}
/**
* Magic Method to handle calls to undefined functions on the controller.
...
...
laravel/routing/handler.php
View file @
195f7862
...
...
@@ -126,7 +126,7 @@ class Handler {
$controller
=
$this
->
resolve
(
$controller
);
$response
=
$controller
->
before
(
$this
->
request
);
$response
=
(
$method
==
'before'
or
strncmp
(
$method
,
'_'
,
1
)
===
0
)
?
new
Error
(
'404'
)
:
$controller
->
before
(
$this
->
request
);
return
(
is_null
(
$response
))
?
call_user_func_array
(
array
(
$controller
,
$method
),
$parameters
)
:
$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