Feature #2506

Automagic action argument registration

Added by Robert Lemke over 12 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
MVC
Start date:
2009-01-22
Due date:
% Done:

70%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Currently arguments of a controller must be registered manually through the

$this->arguments->addNewArgument()
method.

In the future this should be possible per action and by just defining arguments as method arguments (and properly documenting them):

/**
 * @param string $uuid
 * @param string $name 
 * @param string $description Description of blog posting
 */
public function updateAction($uuid, $name, $description) {
}

How validation is configured requires, however, further research.

Also available in: Atom PDF