concrete/src/Entity/OAuth/AuthCodeRepository.php
public function revokeAuthCode($codeId)
    {
        $code = $this->find($codeId);

        if (!$code) {
            throw new \InvalidArgumentException('Invalid auth token code');
        }

        $this->getEntityManager()->transactional(function(EntityManagerInterface $em) use ($code) {
            $code = $em->merge($code);
            if ($code) {
                $em->remove($code);
            }
        });
    }
public function revokeAuthCode($codeId)
    {
        $code = $this->find($codeId);

        if (!$code) {
            throw new \InvalidArgumentException('Invalid auth token code');
        }

        $this->getEntityManager()->transactional(function(EntityManagerInterface $em) use ($code) {
            $code = $em->merge($code);
            if ($code) {
                $em->remove($code);
            }
        });
    }
public function revokeAuthCode ( $ codeId ) { $ code = $ this -> find ( $ codeId ) ; if ( ! $ code ) { throw new \ InvalidArgumentException ( 'Invalid auth token code' ) ; } $ this -> getEntityManager ( ) -> transactional ( function ( EntityManagerInterface $ em ) use ( $ code ) { $ code = $ em -> merge ( $ code ) ; if ( $ code ) { $ em -> remove ( $ code ) ; } } ) ; }
Revoke an auth code.

@param string $codeId
@throws \Exception
Revoke an auth code .