public function setModuleDirs($dirs) {
	    
	    if(!is_array($dirs) && !($dirs instanceof \Traversable)){
	        throw new \InvalidArgumentException('Invalid argument $dirs; array or instance of Traversable expected');
	    }
	    
	    $this->moduleDirs = array();
	    
		foreach($dirs as $dir){
		    if(!is_dir($dir) || !is_readable($dir)){
		        throw new \Exception('Illegal module directory specified: '.$dir);
		    }
		    
		    $this->moduleDirs[] = $dir;
		}
	}
public function setModuleDirs($dirs) {
	    
	    if(!is_array($dirs) && !($dirs instanceof \Traversable)){
	        throw new \InvalidArgumentException('Invalid argument $dirs; array or instance of Traversable expected');
	    }
	    
	    $this->moduleDirs = array();
	    
		foreach($dirs as $dir){
		    if(!is_dir($dir) || !is_readable($dir)){
		        throw new \Exception('Illegal module directory specified: '.$dir);
		    }
		    
		    $this->moduleDirs[] = $dir;
		}
	}
public function setModuleDirs ( $ dirs ) { if ( ! is_array ( $ dirs ) && ! ( $ dirs instanceof \ Traversable ) ) { throw new \ InvalidArgumentException ( 'Invalid argument $dirs; array or instance of Traversable expected' ) ; } $ this -> moduleDirs = array ( ) ; foreach ( $ dirs as $ dir ) { if ( ! is_dir ( $ dir ) || ! is_readable ( $ dir ) ) { throw new \ Exception ( 'Illegal module directory specified: ' . $ dir ) ; } $ this -> moduleDirs [ ] = $ dir ; } }
Set module directories

@param array $moduleDirs
Set module directories