protected function configureAuthorizationServer(AuthorizationServer $authorizationServer, array $config)
    {
        if (isset($config['scope_param'])) {
            $authorizationServer->requireScopeParam($config['scope_param']);
        }
        if (isset($config['default_scope'])) {
            $authorizationServer->setDefaultScope($config['default_scope']);
        }
        if (isset($config['state_param'])) {
            $authorizationServer->requireStateParam($config['state_param']);
        }
        if (isset($config['scope_delimiter'])) {
            $authorizationServer->setScopeDelimiter($config['scope_delimiter']);
        }
        if (isset($config['access_token_ttl'])) {
            $authorizationServer->setAccessTokenTTL($config['access_token_ttl']);
        }

        $this->configureGrantTypes($authorizationServer, $config['grant_types']);
    }
protected function configureAuthorizationServer(AuthorizationServer $authorizationServer, array $config)
    {
        if (isset($config['scope_param'])) {
            $authorizationServer->requireScopeParam($config['scope_param']);
        }
        if (isset($config['default_scope'])) {
            $authorizationServer->setDefaultScope($config['default_scope']);
        }
        if (isset($config['state_param'])) {
            $authorizationServer->requireStateParam($config['state_param']);
        }
        if (isset($config['scope_delimiter'])) {
            $authorizationServer->setScopeDelimiter($config['scope_delimiter']);
        }
        if (isset($config['access_token_ttl'])) {
            $authorizationServer->setAccessTokenTTL($config['access_token_ttl']);
        }

        $this->configureGrantTypes($authorizationServer, $config['grant_types']);
    }
protected function configureAuthorizationServer ( AuthorizationServer $ authorizationServer , array $ config ) { if ( isset ( $ config [ 'scope_param' ] ) ) { $ authorizationServer -> requireScopeParam ( $ config [ 'scope_param' ] ) ; } if ( isset ( $ config [ 'default_scope' ] ) ) { $ authorizationServer -> setDefaultScope ( $ config [ 'default_scope' ] ) ; } if ( isset ( $ config [ 'state_param' ] ) ) { $ authorizationServer -> requireStateParam ( $ config [ 'state_param' ] ) ; } if ( isset ( $ config [ 'scope_delimiter' ] ) ) { $ authorizationServer -> setScopeDelimiter ( $ config [ 'scope_delimiter' ] ) ; } if ( isset ( $ config [ 'access_token_ttl' ] ) ) { $ authorizationServer -> setAccessTokenTTL ( $ config [ 'access_token_ttl' ] ) ; } $ this -> configureGrantTypes ( $ authorizationServer , $ config [ 'grant_types' ] ) ; }
Configures the authorization server instance.

@param AuthorizationServer $authorizationServer
@param array               $config
Configures the authorization server instance .