public function addConfigPath($path)
    {
        if (!is_dir($path)) {
            throw new LoaderException(sprintf("The config path '%s' is not a valid directory", $path));
        }
        if ($path[strlen($path) - 1] != "/") {
            $path .= "/";
        }
        $this->configPaths[] = $path;
    }
public function addConfigPath($path)
    {
        if (!is_dir($path)) {
            throw new LoaderException(sprintf("The config path '%s' is not a valid directory", $path));
        }
        if ($path[strlen($path) - 1] != "/") {
            $path .= "/";
        }
        $this->configPaths[] = $path;
    }
public function addConfigPath ( $ path ) { if ( ! is_dir ( $ path ) ) { throw new LoaderException ( sprintf ( "The config path '%s' is not a valid directory" , $ path ) ) ; } if ( $ path [ strlen ( $ path ) - 1 ] != "/" ) { $ path .= "/" ; } $ this -> configPaths [ ] = $ path ; }
Add a directory to search in when loading configuration files

@param string $path
@throws Exception\LoaderException
Add a directory to search in when loading configuration files