Changeset 765

Show
Ignore:
Timestamp:
07/11/07 20:46:32 (1 year ago)
Author:
schst
Message:

Check, whether service config file exists; bugfix configurable service files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/websites/processors/stubJsonRpcProcessor.php

    r761 r765  
    329329     */ 
    330330    protected function getServiceFilePath() { 
    331         return stubConfig::getConfigPath() . '/xml/' . stubRegistry::get(self::KEY_SERVICE_FILE,'json-rpc-service.xml'); 
     331        $configFile = stubConfig::getConfigPath() . '/xml/' . stubRegistry::getConfig(self::KEY_SERVICE_FILE,'json-rpc-service.xml'); 
     332        if (!file_exists($configFile) || !is_readable($configFile)) { 
     333            stubClassLoader::load('net.stubbles.util.exceptions.stubFileNotFoundException'); 
     334            throw new stubFileNotFoundException($configFile); 
     335        } 
     336        return $configFile; 
    332337    } 
    333338}