public function getControllers($namespace=null)
	{
	    if (null === $namespace) {
	        return $this->controllers;
	    }
	    
	    $controllers = [];
	    foreach ($this->controllers as $name => $controller) {
	        if ($this->extractNamespace($name, substr_count($namespace, ':') + 1) === $namespace) {
	            $controllers[$name] = $controller;
	        }
	    }
	    
	    return $controllers;
	}
public function getControllers($namespace=null)
	{
	    if (null === $namespace) {
	        return $this->controllers;
	    }
	    
	    $controllers = [];
	    foreach ($this->controllers as $name => $controller) {
	        if ($this->extractNamespace($name, substr_count($namespace, ':') + 1) === $namespace) {
	            $controllers[$name] = $controller;
	        }
	    }
	    
	    return $controllers;
	}
public function getControllers ( $ namespace = null ) { if ( null === $ namespace ) { return $ this -> controllers ; } $ controllers = [ ] ; foreach ( $ this -> controllers as $ name => $ controller ) { if ( $ this -> extractNamespace ( $ name , substr_count ( $ namespace , ':' ) + 1 ) === $ namespace ) { $ controllers [ $ name ] = $ controller ; } } return $ controllers ; }
get all controllers
@param  string $namespace 命名空间
@return Controller[]
get all controllers