Changeset 2114

Show
Ignore:
Timestamp:
10/07/07 14:46:55 (15 months ago)
Author:
david
Message:

Do not store global request data copy in serialized execution containers, and restore current global request data if possible on wakeup. Refs #544

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/src/controller/AgaviExecutionContainer.class.php

    r2108 r2114  
    115115    $this->outputTypeName = $this->outputType->getName(); 
    116116    $arr = get_object_vars($this); 
    117     unset($arr['context'], $arr['outputType']); 
     117    unset($arr['context'], $arr['outputType'], $arr['requestData']); 
    118118    return array_keys($arr); 
    119119  } 
     
    132132    $this->context = AgaviContext::getInstance($this->contextName); 
    133133    $this->outputType = $this->context->getController()->getOutputType($this->outputTypeName); 
     134    $rq = $this->context->getRequest(); 
     135    if($rq->isLocked()) { 
     136      $this->requestData = new AgaviRequestDataHolder(); 
     137    } else { 
     138      $this->requestData = $rq->getRequestData(); 
     139    } 
    134140    unset($this->contextName, $this->outputTypeName); 
    135141  }