ericbrunson
Technical User
I'm using PEAR MAIL to do some mailing, but I would like to subclass the mailer object to better abstract the interface for my own purposes.
But, it seems I can't because mailer objects are created using the MAIL::factory() method and there are only 3 kinds of mailers it knows how to instantiate. I could subclass the mail object and override the factory method, but why?
It's like someone read the chapter on Factories in Programming Patterns, but didn't really understand what they were for? All I see it doing is overly complicating the issue.
Anyone want to explain this or flame me on the issue?