original_string: public function build($vars = [], ServerRequest $request = null, Response $response = null, EventManager $events = null)
      {
          $className = $this->_className;
          if ($className === null) {
              $className = App::className('App', 'View', 'View') ?: 'Cake\View\View';
          }
          if ($className === 'View') {
              $className = App::className($className, 'View');
          } else {
              $className = App::className($className, 'View', 'View');
          }
          if (!$className) {
              throw new MissingViewException(['class' => $this->_className]);
          }
  
          $data = [
              'name' => $this->_name,
              'templatePath' => $this->_templatePath,
              'template' => $this->_template,
              'plugin' => $this->_plugin,
              'theme' => $this->_theme,
              'layout' => $this->_layout,
              'autoLayout' => $this->_autoLayout,
              'layoutPath' => $this->_layoutPath,
              'helpers' => $this->_helpers,
              'viewVars' => $vars + $this->_vars,
          ];
          $data += $this->_options;
  
          return new $className($request, $response, $events, $data);
      }
code: public function build($vars = [], ServerRequest $request = null, Response $response = null, EventManager $events = null)
      {
          $className = $this->_className;
          if ($className === null) {
              $className = App::className('App', 'View', 'View') ?: 'Cake\View\View';
          }
          if ($className === 'View') {
              $className = App::className($className, 'View');
          } else {
              $className = App::className($className, 'View', 'View');
          }
          if (!$className) {
              throw new MissingViewException(['class' => $this->_className]);
          }
  
          $data = [
              'name' => $this->_name,
              'templatePath' => $this->_templatePath,
              'template' => $this->_template,
              'plugin' => $this->_plugin,
              'theme' => $this->_theme,
              'layout' => $this->_layout,
              'autoLayout' => $this->_autoLayout,
              'layoutPath' => $this->_layoutPath,
              'helpers' => $this->_helpers,
              'viewVars' => $vars + $this->_vars,
          ];
          $data += $this->_options;
  
          return new $className($request, $response, $events, $data);
      }
code_tokens: public function build ( $ vars = [ ] , ServerRequest $ request = null , Response $ response = null , EventManager $ events = null ) { $ className = $ this -> _className ; if ( $ className === null ) { $ className = App :: className ( 'App' , 'View' , 'View' ) ? : 'Cake\View\View' ; } if ( $ className === 'View' ) { $ className = App :: className ( $ className , 'View' ) ; } else { $ className = App :: className ( $ className , 'View' , 'View' ) ; } if ( ! $ className ) { throw new MissingViewException ( [ 'class' => $ this -> _className ] ) ; } $ data = [ 'name' => $ this -> _name , 'templatePath' => $ this -> _templatePath , 'template' => $ this -> _template , 'plugin' => $ this -> _plugin , 'theme' => $ this -> _theme , 'layout' => $ this -> _layout , 'autoLayout' => $ this -> _autoLayout , 'layoutPath' => $ this -> _layoutPath , 'helpers' => $ this -> _helpers , 'viewVars' => $ vars + $ this -> _vars , ] ; $ data += $ this -> _options ; return new $ className ( $ request , $ response , $ events , $ data ) ; }
docstring: Using the data in the builder, create a view instance.
  
  If className() is null, App\View\AppView will be used.
  If that class does not exist, then Cake\View\View will be used.
  
  @param array $vars The view variables/context to use.
  @param \Cake\Http\ServerRequest|null $request The request to use.
  @param \Cake\Http\Response|null $response The response to use.
  @param \Cake\Event\EventManager|null $events The event manager to use.
  @return \Cake\View\View
  @throws \Cake\View\Exception\MissingViewException
docstring_tokens: Using the data in the builder create a view instance .