[TYPO3-core] FYI: #16764: Insufficient information about which class is failing to implement interfaces in tslib_cObj->start()

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Dec 17 13:48:38 CET 2010


Ingo Renner schrieb am 17.12.2010 13:41:
> Hi all,
> 
> FYI, I've committed the attached patches to
> 
> branch 4.4 in rr9822 and
> trunk (4.5) in r9823
> 
> Typ: tweak / clean up
> 
> BT Reference: http://bugs.typo3.org/view.php?id=16764
> 
> Problem:
> Hooks and interfaces introduced intslib_cObj->start() check whether
> classes registered for these hooks implement the associated interfaces
> and throw an exception if that is not the case. The exception's message
> does not provide information about which class is failing to implement
> the necessary interfaces though.
> 
> Solution:
> Add the class information to the exception messages

+					throw new UnexpectedValueException(
+						$classData . ' implement interface tslib_content_stdWrapHook',
+						1195043965
+					);

Isn't the work " must" missing after $classData in the message?

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list