/** * @param InvokableParams $params */ protected function process(InvokableParams $params) { $name = $params->getName(); $values_callback = $params->getValuesCallback(); $values = $values_callback($name); if (is_array($values)) { return; } $params->setValue([$name => $values]); }
/** * @param InvokableParams $params */ protected function process(InvokableParams $params) { $params->setValue(call_user_func($this->middleware, $params->getName(), $params->getValuesCallback(), $params->getOptions())); }