예제 #1
0
 /**
  * @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;
 }
예제 #2
0
 /**
  * @param Request $request
  * @param Model $model
  * @return Model
  */
 function __invoke(Request $request, Model $model)
 {
     $model->vars(['params' => $request->params(), 'args' => [__CLASS__]]);
     return $model;
 }