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

Andreas Wolf typo3ml at andreaswolf.info
Mon May 24 21:38:19 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I just "wasted" one hour debugging Extbase, just because my docblock
looked like this:

/*
 * ...
 */

I had valid annotations in there, like @dontvalidate. Nevertheless
Extbase did not recognize them - just because I did start the block with
/* instead of /**. Eclipse showed the block as a perfectly valid
docblock - so I only stumbled over this problem by debugging the
internals of Extbase's request handling...

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?

Regards
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkv61asACgkQHWtXp155bP9nHwCfb7lyxDrlyrQfhRdLkL1+LCuI
VNIAn0myGMiX6YqUzf68OL1khEl4U68f
=8Nmv
-----END PGP SIGNATURE-----


More information about the TYPO3-project-typo3v4mvc mailing list