Doh!
That won't work, all the other classes extend something or other, and
that will thwart my god-awful crime of a composite class of all the
plugins that want to be myUsers base  class.

Is the observer pattern what I need here?

On Jun 18, 11:40 am, "[email protected]" <[email protected]> wrote:
> That sounds like an option Marjin, without looking to hairy. so myUser
> will extend MyCompositeUser and myCompositUser will be a union of all
> the class signatures of the 'Extend myUser with this' classes for each
> of the plugins I am interested.
>
> Providing no method signatures clash I may be able to get away with
> such an awful crime.
>
> WITH BEST REGARDS,
> ALEX STONEHAM
>
> On Jun 17, 5:00 pm, Marijn <[email protected]> wrote:
>
> > On Jun 18, 1:33 am, "[email protected]" <[email protected]> wrote:
>
> > > Hi,
>
> > > I want to use some lovely symfony plugins for my site. But the ones I
> > > want to use require you to extend you myUser class to the plugins user
> > > class equiv.
>
> > > For example, sfUserUser, and sympal and xsPasswordManagerPlugin among
> > > others want you to do this.
>
> > > Does that mean if I can't extend my user to be what the plugin wants ,
> > > the plugin is out the window. From the set of plugins I want to user,I
> > > have to mutualy exclusivly pick one as I can't extend more than one
> > > class and all the plugins want you to do this step.
>
> > > It seems like this is a limitation in the framework, and/or a lack of
> > > forsight when planning plugin implementations.
>
> > I think I agree with you on the last part. If these plugins used the
> > event system to listen for unknown methods the problem wouldn't
> > occur...
>
> > You could just have a look what methods they require you to add to
> > your user object and than add those manually to your user class.
>
> > Good luck.
>
> > - Marijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to