original_string: public function dispatch($component = null)
  	{
  		$document = JFactory::getDocument();
  
  		$contents = JComponentHelper::renderComponent($component);
  		$document->setBuffer($contents, 'component');
  
  		// Trigger the onAfterDispatch event.
  		JPluginHelper::importPlugin('system');
  		$this->triggerEvent('onAfterDispatch');
  	}
code: public function dispatch($component = null)
  	{
  		$document = JFactory::getDocument();
  
  		$contents = JComponentHelper::renderComponent($component);
  		$document->setBuffer($contents, 'component');
  
  		// Trigger the onAfterDispatch event.
  		JPluginHelper::importPlugin('system');
  		$this->triggerEvent('onAfterDispatch');
  	}
code_tokens: public function dispatch ( $ component = null ) { $ document = JFactory :: getDocument ( ) ; $ contents = JComponentHelper :: renderComponent ( $ component ) ; $ document -> setBuffer ( $ contents , 'component' ) ; // Trigger the onAfterDispatch event. JPluginHelper :: importPlugin ( 'system' ) ; $ this -> triggerEvent ( 'onAfterDispatch' ) ; }
docstring: Dispatch the application.
  
  Dispatching is the process of pulling the option from the request object and
  mapping them to a component. If the component does not exist, it handles
  determining a default component to dispatch.
  
  @param   string  $component  The component to dispatch.
  
  @return  void
  
  @since   11.1
  @deprecated  4.0
docstring_tokens: Dispatch the application .