Made event parameters optional

pull/22/merge
Mike Cao 12 years ago
parent c3ee140930
commit 13543f696b

@ -36,7 +36,7 @@ class Dispatcher {
* @param array $params Callback parameters
* @return string Output of callback
*/
public function run($name, $params) {
public function run($name, array $params = array()) {
$output = '';
// Run pre-filters
@ -117,8 +117,8 @@ class Dispatcher {
* Executes a chain of method filters.
*
* @param array $filters Chain of filters
* @param object $params Method parameters
* @param object $output Method output
* @param array $params Method parameters
* @param mixed $output Method output
*/
public function filter($filters, &$params, &$output) {
$args = array(&$params, &$output);

Loading…
Cancel
Save