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
7f2fd60e
Commit
7f2fd60e
authored
Oct 16, 2011
by
Phill Sparks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed route before filter
and throw an Exception for anything falling through __call
parent
48f1879b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
route.php
laravel/routing/route.php
+3
-2
No files found.
laravel/routing/route.php
View file @
7f2fd60e
...
...
@@ -95,7 +95,7 @@ class Route {
// request cycle makes tasks like authorization convenient.
$before
=
array_merge
(
array
(
'before'
),
$this
->
filters
(
'before'
));
if
(
!
is_null
(
$response
=
$this
->
filter
(
$before
,
array
(),
true
)))
if
(
!
is_null
(
$response
=
Filter
::
run
(
$before
,
array
(),
true
)))
{
return
$response
;
}
...
...
@@ -117,7 +117,7 @@ class Route {
Filter
::
run
(
$filters
,
array
(
$response
));
return
$response
;
return
$response
;
}
}
...
...
@@ -209,6 +209,7 @@ class Route {
public
function
__call
(
$method
,
$parameters
)
{
if
(
strpos
(
$method
,
'is_'
)
===
0
)
return
$this
->
is
(
substr
(
$method
,
3
));
throw
new
\Exception
(
'Method "'
.
$method
.
'" not found'
,
E_NOTICE
);
}
}
\ No newline at end of file
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