/** * @param Response $response * @param Model $model * @return Model */ function __invoke(Response $response, Model $model = null) { $model->vars(['args' => array_merge([__CLASS__], $model['args'])]); return $model; }
/** * @param Request $request * @param Model $model * @return Model */ function __invoke(Request $request, Model $model) { $model->vars(['params' => $request->params(), 'args' => [__CLASS__]]); return $model; }