Re: oo design question - how to avoid a factory

From: Date: Mon, 20 Dec 2004 14:59:52 +0000
Subject: Re: oo design question - how to avoid a factory
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35181@lists.php.net to get a copy of this message
Olivier Guilyardi wrote:
Now, there may be another solution, to keep bc : In the constructor, issue a warning like "Please use the factory...", and then act as a decorator to the real datagrid. This is very possible because the Structures_DataGrid class is currently an almost empty wrapper.
Here is what I would like to do. I have implemented your diff that you sent me, however instead of removing the datagrid from the constructor of the render drivers I have left that in so that PHP5 users don't have to use the factory method. How does this sound? I will check it into CVS for you to see Andrew

« previous php.pear.dev (#35181) next »