[PHP-DEV] Thoughts On Implementing Decorator Sugar to core

2011-11-23 Thread Anthony Ferrara
Hello all, I've had an idea that's been burning in my head for a while. Rather than write an RFC or do any significant work on it, I thought I would bounce this off of you all first. Basically, I see a problem with implementing decorators in PHP. To explain the problem, let's say that I have a

Re: [PHP-DEV] Thoughts On Implementing Decorator Sugar to core

2011-11-24 Thread Larry Garfield
On 11/23/2011 09:24 AM, Anthony Ferrara wrote: *snip* Now, with traits we could add a trait for each interface which proxies back to `$this->object`. But that's still a lot of duplication and hard-coding. I've run into this issue before myself. It's especially a problem when you're specify