Changeset 761
- Timestamp:
- 07/11/07 20:23:12 (1 year ago)
- Files:
-
- trunk/config/xml/config.xml (modified) (1 diff)
- trunk/src/main/php/net/stubbles/websites/processors/stubJsonRpcProcessor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config/xml/config.xml
r361 r761 10 10 <config name="net.stubbles.ipo.session.class" value="net.stubbles.ipo.session.stubPHPSession" /> 11 11 <config name="net.stubbles.ipo.session.name" value="SID" /> 12 <config name="net.stubbles.services.jsonrpc.config" value="json-rpc-service.xml" /> 12 13 </xj:configuration> trunk/src/main/php/net/stubbles/websites/processors/stubJsonRpcProcessor.php
r678 r761 70 70 71 71 /** 72 * Registry key for the service config file 73 */ 74 const KEY_SERVICE_FILE = 'net.stubbles.services.jsonrpc.configfile'; 75 76 /** 72 77 * Process the request 73 78 * … … 75 80 */ 76 81 public function doProcess() { 77 78 $this->loadServiceConfig(stubConfig::getConfigPath() . '/xml/json-rpc-service.xml'); 82 $this->loadServiceConfig($this->getServiceFilePath()); 79 83 80 84 if ($this->request->hasValue('__generateProxy', stubRequest::SOURCE_PARAM)) { … … 318 322 $this->response->write($responseEncoded); 319 323 } 324 325 /** 326 * Get the full path to the config file describing the services 327 * 328 * @return string 329 */ 330 protected function getServiceFilePath() { 331 return stubConfig::getConfigPath() . '/xml/' . stubRegistry::get(self::KEY_SERVICE_FILE,'json-rpc-service.xml'); 332 } 320 333 } 321 334 ?>
