From 03e4ac7ea69e6a3941f7b79d77bde475d37fd70f Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 13 Nov 2015 17:38:48 +0000 Subject: [PATCH] Removed service providers --- .../ClientCredentialsGrantProvider.php | 29 --------------- .../PasswordGrantProvider.php | 37 ------------------- 2 files changed, 66 deletions(-) delete mode 100644 src/ServiceProviders/ClientCredentialsGrantProvider.php delete mode 100644 src/ServiceProviders/PasswordGrantProvider.php 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; - }); - } -}