how to get presenter factory from container
- jeremy
- Member | 57
I used decorator to add tags to my base presenter and any presenter extending that base presenter automatically gets the tags too.
Neon config:
If you don't want a specific presenter (like Error4xx
) to be
included then you can set the tag for that presenter to null
:
My config is little bit different, but this should give you an idea.
Then I have an extension that finds all the presenters:
Again this is a simplified example of my code, just to give you an idea.
Last edited by jeremy (2023-09-03 15:29)
- alnux
- Member | 139
jeremy wrote:
I used decorator to add tags to my base presenter and any presenter extending that base presenter automatically gets the tags too.
Neon config:
If you don't want a specific presenter (like
Error4xx
) to be included then you can set the tag for that presenter tonull
:My config is little bit different, but this should give you an idea.
Then I have an extension that finds all the presenters:
Again this is a simplified example of my code, just to give you an idea.
thanks @jeremy, it give me some ideas. you are a crack