bundle property wasn't being used, so I made use of it as well as adding the controllers name and action being called.
This commit is contained in:
@@ -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.
|
||||||
*
|
*
|
||||||
@@ -144,6 +158,10 @@ abstract class Controller {
|
|||||||
|
|
||||||
$controller = static::resolve($bundle, $controller);
|
$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,
|
||||||
// we can execute the requested method on the instance.
|
// we can execute the requested method on the instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user