Back to ApiApplication class

Method doExecute

protected void
doExecute
()
Method to run the application routines.
Returns
  • void
Since
  • 4.0.0

Method doExecute - Source code

/**
 * Method to run the application routines.
 *
 * Most likely you will want to instantiate a controller and execute it, or perform some sort of task directly.
 *
 * @return  void
 *
 * @since   4.0.0
 */
protected function doExecute()
{
    // Initialise the application
    $this->initialiseApp();
    // Mark afterInitialise in the profiler.
    JDEBUG ? $this->profiler->mark('afterInitialise') : null;
    // Route the application
    $this->route();
    // Mark afterApiRoute in the profiler.
    JDEBUG ? $this->profiler->mark('afterApiRoute') : null;
    // Dispatch the application
    $this->dispatch();
    // Mark afterDispatch in the profiler.
    JDEBUG ? $this->profiler->mark('afterDispatch') : null;
}