Feature #2506

Automagic action argument registration

Added by Robert Lemke over 12 years ago. Updated almost 11 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.

#1

Updated by Robert Lemke over 12 years ago

  • % Done changed from 0 to 50
#2

Updated by Robert Lemke over 12 years ago

  • % Done changed from 50 to 70

Implemented support for object arguments. Not committed yet, though.

#3

Updated by Sebastian Kurfuerst over 12 years ago

I think that's all committed so far. Can we close this issue?

#4

Updated by Robert Lemke over 12 years ago

  • Status changed from Accepted to Resolved

Also available in: Atom PDF