[FLOW3-general] Overwriting ObjectAccessorNode (or any other class...)
Susanne Moog
susanne.moog at typo3.org
Thu Apr 19 13:01:11 CEST 2012
Hi everyone,
I already asked the question in the FLOW3 channel on IRC, but thought
I'd ask here again, maybe you have another idea.
In our project we need the possibility to use our own implementations
for certain classes (for example the ObjectAccessorNode).
With the method described here:
http://flow3.typo3.org/documentation/guide/partiii/objectmanagement.html#overriding-object-implementations
we could overwrite all classes that have an interface (because you need
to define an interface to overwrite).
The ObjectAccessorNode for example inherits from AbstractNode which
implements the NodeInterface. If we'd overwrite that interface we would
sadly overwrite all other implementations (like BooleanNode for
example), too, where we only want the one implementation overwritten.
As of now we did not find an easy way to solve that (besides commenting
out the exception FLOW3 throws when you define a normal class name
instead of an interface). We are currently working on overwriting the
object manager/configuration manager by hooking into the framework on
signals, but in the end that's quite ugly for the simple thing we really
wanted to do.
We - obviously - try to achieve what we want without changing the
Framework. Maybe you have another idea about what we could try?!
Thanks in advance,
Susi
--
Susanne Moog
TYPO3 Core Team Member
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the FLOW3-general
mailing list