src/OAuth2/Controller/TokenController.php
public function addGrantType(GrantTypeInterface $grantType, $identifier = null)
    {
        if (is_null($identifier) || is_numeric($identifier)) {
            $identifier = $grantType->getQueryStringIdentifier();
        }

        $this->grantTypes[$identifier] = $grantType;
    }
public function addGrantType(GrantTypeInterface $grantType, $identifier = null)
    {
        if (is_null($identifier) || is_numeric($identifier)) {
            $identifier = $grantType->getQueryStringIdentifier();
        }

        $this->grantTypes[$identifier] = $grantType;
    }
public function addGrantType ( GrantTypeInterface $ grantType , $ identifier = null ) { if ( is_null ( $ identifier ) || is_numeric ( $ identifier ) ) { $ identifier = $ grantType -> getQueryStringIdentifier ( ) ; } $ this -> grantTypes [ $ identifier ] = $ grantType ; }
Add grant type

@param GrantTypeInterface $grantType  - the grant type to add for the specified identifier
@param string|null        $identifier - a string passed in as "grant_type" in the response that will call this grantType
Add grant type