[TYPO3-core] RFC #9505: Make the caches in TYPO3 use the new caching framework
Robert Lemke
robert at typo3.org
Wed Oct 8 12:57:29 CEST 2008
Hi Ingo,
On 08.10.2008, at 12:32, Ingo Renner wrote:
> ok, thanks for the hint. Nevertheless it doesn't make sense in this
> situation. We can only test for an interface after we have an
> instance,
> but we want to know this before instantiation in this case
well, almost true. With Reflection you can check if a class implements
a certain interface.
Certainly, reflection is slow, but that's why we have a Reflection
Service
in FLOW3 which caches the reflection information. For determining if a
class implements a certain interface we have this method:
public function isClassImplementationOf($className, $interfaceName) {}
see:
http://forge.typo3.org/repositories/entry/package-flow3/trunk/Classes/Reflection/F3_FLOW3_Reflection_Service.php
Cheers,
robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081008/804676a0/attachment.pgp
More information about the TYPO3-team-core
mailing list