|
@@ -25,6 +25,20 @@ abstract class Controller {
|
|
|
* @var string
|
|
|
*/
|
|
|
public $bundle;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * The controllers name
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ public $name;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * The controllers action
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ public $action;
|
|
|
|
|
|
/**
|
|
|
* Indicates if the controller uses RESTful routing.
|
|
@@ -143,6 +157,10 @@ abstract class Controller {
|
|
|
list($controller, $method) = explode('@', $destination);
|
|
|
|
|
|
$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
|
|
|
// will return the 404 error response. If we found the controller,
|