public function dispatch()
{
$action = explode('::', $this->config['_controller']);
if ($this->parametersByName) {
$this->parameters = array($this->parameters);
}
$this->action = !empty($action[1]) && trim($action[1]) !== '' ? $action[1] : null;
if (!is_null($this->action)) {
$instance = new $action[0]();
call_user_func_array(array($instance, $this->action), $this->parameters);
} else {
$instance = new $action[0]($this->parameters);
}
}