public function expireAuthorizationCode($code)
    {
        $code = $this->em->getRepository('OAuth2ServerBundle:AuthorizationCode')->find($code);
        $this->em->remove($code);
        $this->em->flush();
    }
public function expireAuthorizationCode($code)
    {
        $code = $this->em->getRepository('OAuth2ServerBundle:AuthorizationCode')->find($code);
        $this->em->remove($code);
        $this->em->flush();
    }
public function expireAuthorizationCode ( $ code ) { $ code = $ this -> em -> getRepository ( 'OAuth2ServerBundle:AuthorizationCode' ) -> find ( $ code ) ; $ this -> em -> remove ( $ code ) ; $ this -> em -> flush ( ) ; }
once an Authorization Code is used, it must be exipired

@see http://tools.ietf.org/html/rfc6749#section-4.1.2

The client MUST NOT use the authorization code
more than once.  If an authorization code is used more than
once, the authorization server MUST deny the request and SHOULD
revoke (when possible) all tokens previously issued based on
that authorization code
once an Authorization Code is used it must be exipired