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
01894ae4
Commit
01894ae4
authored
May 10, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #651 from dlpetrie/patch-4
Controller property Bundle ( and some additions )
parents
d0edf92e
8a8d3319
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
controller.php
laravel/routing/controller.php
+20
-2
No files found.
laravel/routing/controller.php
View file @
01894ae4
...
@@ -26,6 +26,20 @@ abstract class Controller {
...
@@ -26,6 +26,20 @@ abstract class Controller {
*/
*/
public
$bundle
;
public
$bundle
;
/**
* The controllers name
*
* @var string
*/
public
$name
;
/**
* The controllers action
*
* @var string
*/
public
$action
;
/**
/**
* Indicates if the controller uses RESTful routing.
* Indicates if the controller uses RESTful routing.
*
*
...
@@ -140,9 +154,13 @@ abstract class Controller {
...
@@ -140,9 +154,13 @@ abstract class Controller {
// improve speed since the bundle is not loaded on every request.
// improve speed since the bundle is not loaded on every request.
Bundle
::
start
(
$bundle
);
Bundle
::
start
(
$bundle
);
list
(
$controller
,
$method
)
=
explode
(
'@'
,
$destination
);
list
(
$controller_name
,
$method
)
=
explode
(
'@'
,
$destination
);
$controller
=
static
::
resolve
(
$bundle
,
$controller_name
);
$controller
=
static
::
resolve
(
$bundle
,
$controller
);
$controller
->
bundle
=
$bundle
;
$controller
->
name
=
$controller_name
;
$controller
->
action
=
$method
;
// If the controller could not be resolved, we're out of options and
// If the controller could not be resolved, we're out of options and
// will return the 404 error response. If we found the controller,
// will return the 404 error response. If we found the controller,
...
...
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