protected function createService(Container $container, array $config)
    {
        $authorizationServer = $this->createAuthorizationServer($container, $config);
        $resourceServer      = $this->createResourceServer($container);

        return new OAuth2Service($authorizationServer, $resourceServer);
    }
protected function createService(Container $container, array $config)
    {
        $authorizationServer = $this->createAuthorizationServer($container, $config);
        $resourceServer      = $this->createResourceServer($container);

        return new OAuth2Service($authorizationServer, $resourceServer);
    }
protected function createService ( Container $ container , array $ config ) { $ authorizationServer = $ this -> createAuthorizationServer ( $ container , $ config ) ; $ resourceServer = $ this -> createResourceServer ( $ container ) ; return new OAuth2Service ( $ authorizationServer , $ resourceServer ) ; }
Creates the service instance.

@param Container $container
@param array     $config

@return OAuth2Service
Creates the service instance .