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
3dab5506
Commit
3dab5506
authored
Feb 06, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing route bundle determination.
parent
643b4408
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
route.php
laravel/routing/route.php
+3
-8
No files found.
laravel/routing/route.php
View file @
3dab5506
...
...
@@ -62,10 +62,9 @@ class Route {
$this
->
uris
=
array_map
(
array
(
$this
,
'extract'
),
$uris
);
// Determine the bundle in which the route was registered. We will know
// the bundle by the first segment of the route's URI. We need to know
// the bundle so we know if we need to run a bundle's global filters
// when executing the route.
$this
->
bundle
=
Bundle
::
resolve
(
head
(
explode
(
'/'
,
$this
->
uris
[
0
])));
// the bundle by feeding the URI into the bundle::handles method, which
// will return the bundle assigned to that URI.
$this
->
bundle
=
Bundle
::
handles
(
$this
->
uris
[
0
]);
$this
->
parameters
=
array_map
(
'urldecode'
,
$parameters
);
}
...
...
@@ -147,10 +146,6 @@ class Route {
*/
protected
function
filters
(
$event
)
{
// Add the global filters to the array. We will also attempt to add
// the bundle's global filter as well. However, we'll need to keep
// the array unique since the default bundle's global filter will
// be the same as the application's global filter.
$filters
=
array_unique
(
array
(
$event
,
Bundle
::
prefix
(
$this
->
bundle
)
.
$event
));
// Next wee will check to see if there are any filters attached
...
...
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