diff --git a/src/ServiceProviders/ClientCredentialsGrantProvider.php b/src/ServiceProviders/ClientCredentialsGrantProvider.php deleted file mode 100644 index c56b0baf..00000000 --- a/src/ServiceProviders/ClientCredentialsGrantProvider.php +++ /dev/null @@ -1,29 +0,0 @@ -getContainer(); - - $container->add('ClientCredentialsGrant', function () use ($container) { - $grant = new ClientCredentialsGrant( - $container->get('emitter'), - $container->get('ClientRepository'), - $container->get('ScopeRepository'), - $container->get('AccessTokenRepository') - ); - return $grant; - }); - } -} diff --git a/src/ServiceProviders/PasswordGrantProvider.php b/src/ServiceProviders/PasswordGrantProvider.php deleted file mode 100644 index 540c73b3..00000000 --- a/src/ServiceProviders/PasswordGrantProvider.php +++ /dev/null @@ -1,37 +0,0 @@ -getContainer(); - - $container->add('PasswordGrant', function () use ($container) { - - $refreshTokenRepository = null; - if ($container->isRegistered('RefreshTokenRepository')) { - $refreshTokenRepository = $container->get('RefreshTokenRepository'); - } - - $grant = new PasswordGrant( - $container->get('emitter'), - $container->get('ClientRepository'), - $container->get('ScopeRepository'), - $container->get('AccessTokenRepository'), - $container->get('UserRepository'), - $refreshTokenRepository - ); - return $grant; - }); - } -}