public function registerModuleDirectory($directory, $excludePattern = '/\/tests\//')
    {
        if (!isset($this->moduleDirectories[$directory])) {
            $this->moduleDirectories[$directory] = $excludePattern;
            
            return true;
        }
        
        return false;
    }
public function registerModuleDirectory($directory, $excludePattern = '/\/tests\//')
    {
        if (!isset($this->moduleDirectories[$directory])) {
            $this->moduleDirectories[$directory] = $excludePattern;
            
            return true;
        }
        
        return false;
    }
public function registerModuleDirectory ( $ directory , $ excludePattern = '/\/tests\//' ) { if ( ! isset ( $ this -> moduleDirectories [ $ directory ] ) ) { $ this -> moduleDirectories [ $ directory ] = $ excludePattern ; return true ; } return false ; }
Adds a directory as module directory

@access public
@param string $directory
@param string $excludePattern
@return boolean
Adds a directory as module directory