lithium\console\command\Create::invokeMethod()

public method

Helper method to access sub-command information from the main command, without exposing sub-command information publicly.

Parameters

  • string $method

    Name of the method to call

  • array $param

    Parameter list to use when calling $method

Returns

mixed

Returns the result of the method call

Source

	public function invokeMethod($method, $params = []) {
		return call_user_func_array([$this, $method], $params);
	}