[TYPO3-mvc] RFC: Throw exception if action methods have no docblock

Martin Kutschker masi-no at spam-typo3.org
Mon May 24 22:01:54 CEST 2010


Andreas Wolf schrieb:
> 
> My proposal is to throw an exception if no docblock is given for action
> methods. This would prevent such errors, and for argument validation we
> need a docblock anyways. What is your opinion?

Why restrict this to actions? I guess that for many classes and methods certain annotations are a
must. But I guess this should trigger an error and not throw an exception. For classes and methods
where it is suspicious that annotations are missing warnings could be issued.

To reverse this Extbase could also trigger debug and/or notice messages for all things it thinks it
figures out successfully.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list