[FLOW3-general] AOP question
Fernando Arconada
falcifer2001 at yahoo.es
Sun May 29 13:01:26 CEST 2011
Are TypeConverters automaticallt inserted in the flow of a request or need
to be called manually by the action?
My action should be agnostic of that kind of parameter manipulation, I
think that this is a traversal aspect that could be shared between
several methods, inside this aspect I could use the TypeConverters to
reuse even more code
Greets,
Fernando
El Sun, 29 May 2011 12:01:34 +0200, Sebastian Kurfürst escribió:
> Hey Fernando,
>
> do you use the newest master, or the last alpha release?
>
> in Master, we have completely rewritten the Property Mapper, and
> introduced so-called "TypeConverters". What you want to archive is much
> easier to do with a custom TypeConverter; I am not even sure if it is
> possible with AOP at this place.
>
> I'd suggest to look into
> F3\FLOW3\Property\TypeConverter\PersistentObjectConverter, subclass it,
> and adjust it to your needs.
>
> You only need to make sure to set a higher priority for the
> TypeConverter, such that it will be used.
>
> Unfortunately that stuff is not yet documented, so if you have any
> questions, let me know!
>
> Greets,
> Sebastian
More information about the FLOW3-general
mailing list