Permalink
Browse files

Add a proxy for execute method

  • Loading branch information...
1 parent 6343dee commit ddedc505c4c9718b076503505e5bb6ee0400afe5 @chdemko committed Jun 26, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 libraries/joomla/controller/base.php
@@ -50,6 +50,20 @@ public function __construct(JInput $input = null, JApplicationBase $app = null)
}
/**
+ * Proxy to execute the controller.
+ *
+ * @return boolean True if controller finished execution, false if the controller did not
+ * finish execution. A controller might return false if some precondition for
+ * the controller to run has not been satisfied.
+ *
+ * @since 12.2
+ */
+ public function __invoke()
+ {
+ return $this->execute();
+ }
+
+ /**
* Get the application object.
*
* @return JApplicationBase The application object.

0 comments on commit ddedc50

Please sign in to comment.