Add lazy initialization to PersistentObject component like in the database component.
Operating System: PHP Version: (please be specific, like '4.4.3' or '5.1.5') Database and version: Browser (and version):
No attachments for this issue.
Could you please offer any insights on how this could work, and when/how it is useful?
If you don't want to init the po session in general and also don't want to track where you use it (and then manually instatiate it). With lazy initialization I can just use it in a gateway class and don't have to care about the PO session.
Before throwing the exception for an unknown session in ezcPersistentSessionInstance::get() a check for the callback should be performed.
Together with the lazy initialization of the Db component this would be possible:
public static function configureObject( $instance ) { $session = new ezcPersistentSession( ezcDbInstance::get(), new ezcPersistentCodeManager( '../persistent' ) ); return $session; } }
Implemented in rev. 8527.
No links for this issue.