[Solar-talk] Move Solar.php to Solar/Solar.php ?

Paul M Jones pmjones at ciaweb.net
Thu Sep 6 07:55:33 CDT 2007


On Sep 6, 2007, at 7:45 AM, Travis Swicegood wrote:

> On Sep 5, 2007, at 6:50 PM, Clay Loveless wrote:
>
>>
>> On Sep 5, 2007, at 4:21 PM, Paul M Jones wrote:
>>
>>> On initial consideration, I'm not sure that we *can* get rid of  
>>> it.  Solar::factory() and Solar::dependency() and Solar::registry 
>>> (), for example, are key underpinnings.  Having to type a longer  
>>> prefix class-name would be a bit  of a hassle.  (Yes, I know that  
>>> "more to type" is not a good reason, but still.)
>>
>> Yeah, that would be a bit irritating ... but the benefits of being  
>> able to more easily unit test a base class that didn't rely on  
>> static methods might outweigh the burden of extra typing.
>
> That sounds like something I might have said... ;-)
>
>
> As far as typing Solar_Framework::factory(), would you actually be  
> doing that if you're relying on autoload code?

The factory() method is used to create new objects, not (primarily)  
to load classes.



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.  <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.  <http://phpsavant.com>




More information about the Solar-talk mailing list