Back to ControllerInterface class

Method execute

public mixed
execute
(mixed $task)
Execute a controller task.
Parameters
  • string $task The task to perform.
Returns
  • mixed The value returned by the called method.
Since
  • 4.0.0
-
  • \InvalidArgumentException
  • \RuntimeException

Method execute - Source code

/**
 * Execute a controller task.
 *
 * @param   string  $task  The task to perform.
 *
 * @return  mixed   The value returned by the called method.
 *
 * @since   4.0.0
 * @throws  \InvalidArgumentException
 * @throws  \RuntimeException
 */
public function execute($task);