42 $this->router = $router;
43 $this->request = $request;
44 $this->config = $config;
45 $this->responseFactory = $responseFactory;
85 return $this->responseFactory;
97 $validatedParams = $restValidator->
validateParams( $this->getParamSettings() );
98 $validatedBody = $restValidator->
validateBody( $this->request, $this );
99 $this->validatedParams = $validatedParams;
100 $this->validatedBody = $validatedBody;
132 return $this->validatedParams;
141 return $this->validatedBody;
Do-nothing body validator.
return[ 'OATHAuth'=> function(MediaWikiServices $services) { return new OATHAuth($services->getMainConfig(), $services->getDBLoadBalancerFactory());}, 'OATHUserRepository'=> function(MediaWikiServices $services) { global $wgOATHAuthDatabase;$auth=$services->getService( 'OATHAuth');return new OATHUserRepository($services->getDBLoadBalancerFactory() ->getMainLB( $wgOATHAuthDatabase), new \HashBagOStuff(['maxKey'=> 5]), $auth);}]
Interface for validating a request body.