original_string: protected function getControllerInstance($class)
      {
          if (!isset($this->controllerInstances[$class])) {
              $this->controllerInstances[$class] = new $class(array(
                  'wei' => $this->wei,
                  'app' => $this,
              ));
          }
  
          return $this->controllerInstances[$class];
      }
code: protected function getControllerInstance($class)
      {
          if (!isset($this->controllerInstances[$class])) {
              $this->controllerInstances[$class] = new $class(array(
                  'wei' => $this->wei,
                  'app' => $this,
              ));
          }
  
          return $this->controllerInstances[$class];
      }
code_tokens: protected function getControllerInstance ( $ class ) { if ( ! isset ( $ this -> controllerInstances [ $ class ] ) ) { $ this -> controllerInstances [ $ class ] = new $ class ( array ( 'wei' => $ this -> wei , 'app' => $ this , ) ) ; } return $ this -> controllerInstances [ $ class ] ; }
docstring: Get the controller instance, if not found, return false instead
  
  @param string $class The class name of controller
  @return \Wei\BaseController
docstring_tokens: Get the controller instance if not found return false instead