/** * Create a handler instance and register it. * * @return D_SessionHandler */ public static function register() { $handler = new self(); if (!$handler->registerHandler()) { throw new D_Exception_Runtime('Failed to set the save handler.'); } return $handler; }