public function setAccessToken(AccessToken $token)
    {
        $this->container->get('config')
            ->set('access_token', json_encode($token->jsonSerialize()));
    }
public function setAccessToken(AccessToken $token)
    {
        $this->container->get('config')
            ->set('access_token', json_encode($token->jsonSerialize()));
    }
public function setAccessToken ( AccessToken $ token ) { $ this -> container -> get ( 'config' ) -> set ( 'access_token' , json_encode ( $ token -> jsonSerialize ( ) ) ) ; }
Sets an access token and adds it to `AuthMiddleware` so the application
can make authenticated requests.

@param AccessToken $token

@return  void

@codeCoverageIgnore
Sets an access token and adds it to AuthMiddleware so the application can make authenticated requests .