[Solar-talk] Solar_Event_Dispatcher (was: tests in the browser)
Paul M Jones
pmjones at solarphp.com
Mon Oct 16 07:48:39 PDT 2006
On Oct 16, 2006, at 9:38 AM, Rodrigo Moraes wrote:
> On 10/16/06, Paul M Jones wrote:
>> If I understand your request properly, Solar::register() already does
>> this. You can specify a "lazy-load" registration like so:
>>
>> $name = 'example';
>> $class = 'Solar_Test_Example';
>> $config = array(...); // or set to null for defaults
>> Solar::register($name, $class, $config);
>>
>> Then when you call Solar::registry('example') it will construct and
>> configure the class for you at that moment.
>>
>> Does that help at all?
>
> Yes, Andrew pointed that this already existed later on this topic.
Ah yes, I see that now. Sorry to belabor the point; this is what
happens when I come late to the discussion.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list