Changeset 1544
- Timestamp:
- 04/13/08 21:48:05 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/service/jsonrpc/stubJsonRpcProcessor.php
r1534 r1544 33 33 34 34 /** 35 * constructor 36 * 37 * @param stubRequest $request the current request 38 * @param stubSession $session the current session 39 * @param stubResponse $response the current response 35 * optional template method to do some constructor work in derived classes 40 36 */ 41 p ublic function __construct(stubRequest $request, stubSession $session, stubResponse $response)37 protected function doConstruct() 42 38 { 43 parent::__construct($request, $session, $response);44 39 $this->configFile = stubConfig::getConfigPath() . DIRECTORY_SEPARATOR . stubRegistry::getConfig(self::KEY_SERVICE_FILE, 'json-rpc-service.ini'); 45 40 } trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php
r1534 r1544 57 57 58 58 /** 59 * constructor 60 * 61 * @param stubRequest $request the current request 62 * @param stubSession $session the current session 63 * @param stubResponse $response the current response 64 */ 65 public function __construct(stubRequest $request, stubSession $session, stubResponse $response) 66 { 67 $this->prefixRequest = new stubRequestPrefixDecorator($request, ''); 68 parent::__construct($request, $session, $response); 69 $this->config = $this->createConfig(); 59 * optional template method to do some constructor work in derived classes 60 */ 61 protected function doConstruct() 62 { 63 $this->prefixRequest = new stubRequestPrefixDecorator($this->request, ''); 64 $this->config = $this->createConfig(); 70 65 } 71 66 trunk/src/main/php/net/stubbles/websites/processors/stubAbstractProcessor.php
r1459 r1544 59 59 public function __construct(stubRequest $request, stubSession $session, stubResponse $response) 60 60 { 61 $this->request = $request; 62 $this->session = $session; 63 $this->response = $response; 61 $this->request = $request; 62 $this->session = $session; 63 $this->response = $response; 64 $this->doConstruct(); 65 } 66 67 /** 68 * optional template method to do some constructor work in derived classes 69 */ 70 protected function doConstruct() 71 { 72 // intentionally empty 64 73 } 65 74
