[TYPO3-v4] "CGL" policy for new hooks?

Dmitry Dulepov dmitry.dulepov at gmail.com
Wed Mar 23 11:19:58 CET 2011


Hi!

Stefan Geith wrote:
> What about using interfaces, but with a mandatory last parameter
> $additionalParams, that is/may be an empty array ?

Again defeats the purpose of interfaces: to define a clean and clear way to 
pass parameters.

There is no point to make interface if parameters go through arrays. Just 
use a tradition user function and pass parameters as array. Interface will 
only complicate it.

It if is an interface, it should have all parameters defined clearly.

-- 
Dmitry Dulepov
TYPO3 core&security team member
E-mail: dmitry.dulepov at typo3.org
Web: http://dmitry-dulepov.com/


More information about the TYPO3-project-v4 mailing list