private function authBasic(Request $request) {
		$user = $this->findUser($request->getUser());
		if ($user !== null && $this->verifyUser($user, $request->getPassword())) {
			$session = $this->findSession($user);
			if ($session === null) {
				$session = $this->createSession($user);
			}
			$this->authenticated = true;

			return $session;
		}
		return null;
	}
private function authBasic(Request $request) {
		$user = $this->findUser($request->getUser());
		if ($user !== null && $this->verifyUser($user, $request->getPassword())) {
			$session = $this->findSession($user);
			if ($session === null) {
				$session = $this->createSession($user);
			}
			$this->authenticated = true;

			return $session;
		}
		return null;
	}
private function authBasic ( Request $ request ) { $ user = $ this -> findUser ( $ request -> getUser ( ) ) ; if ( $ user !== null && $ this -> verifyUser ( $ user , $ request -> getPassword ( ) ) ) { $ session = $ this -> findSession ( $ user ) ; if ( $ session === null ) { $ session = $ this -> createSession ( $ user ) ; } $ this -> authenticated = true ; return $ session ; } return null ; }
Authenticates a user by basic authentication

@param Request $request
@return Session|null
Authenticates a user by basic authentication