> Zend_Session_Namespace may not be intuitive in terms of naming or what
> it does, but the actual *usage* is incredibly simple and very intuitive:
>
>     $auth = Zend_Session_Namespace('auth');
>     echo $auth->name;
>
> I personally like that notation, but I may be an OO junkie.

The idea was that new users may be confused by the concept of namespacing
the session store.  In any event, the usage is basically identical to the
Zend_Registry Singleton interface in ease of use.

> How is:
>
>     $log = new Zend_Log(new Zend_Log_Writer_Stream($filename));
>     $log->log('My error message'):
>
> harder than:
>
>     Zend_Log::setAdapter(new Zend_Log_Adapter_File($filename));
>     Zend_Log::log('My error message');
>
> ?

You've misunderstood me.  I wasn't criticizing either, or comparing the
new Zend_Log to the old one (I prefer the refactored class, personally). 
I was saying that the usage of either component is not immediately
intuitive at first glance, but that the added flexibility more than
offsets the comparatively minor inconvenience of taking the time to learn
their use.

-Matt

Reply via email to