Added missing repository ref to IOC

Change-Id: I0333ded874558d712eb6a66984c7f09e5f3bebbb
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2021-07-12 17:22:15 -03:00
parent bd18981aac
commit 2a16bfa1fb
1 changed files with 51 additions and 43 deletions

View File

@ -11,6 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
**/
use App\libs\Auth\Models\SpamEstimatorFeed;
use App\libs\Auth\Models\UserRegistrationRequest;
use App\libs\Auth\Repositories\IBannedIPRepository;
@ -66,6 +67,7 @@ use OAuth2\Repositories\IServerPrivateKeyRepository;
use LaravelDoctrine\ORM\Facades\EntityManager;
use OpenId\Repositories\IOpenIdAssociationRepository;
use OpenId\Repositories\IOpenIdTrustedSiteRepository;
/**
* Class RepositoriesProvider
* @package Repositories
@ -74,10 +76,12 @@ final class RepositoriesProvider extends ServiceProvider
{
protected $defer = true;
public function boot(){
public function boot()
{
}
public function register(){
public function register()
{
App::singleton(IGroupRepository::class,
function () {
@ -88,8 +92,7 @@ final class RepositoriesProvider extends ServiceProvider
App::singleton(IUserPasswordResetRequestRepository::class,
function () {
return EntityManager::getRepository(UserPasswordResetRequest::class);
})
;
});
App::singleton(IServerExtensionRepository::class,
function () {
@ -256,27 +259,32 @@ final class RepositoriesProvider extends ServiceProvider
public function provides()
{
return [
IServerConfigurationRepository::class,
IGroupRepository::class,
IOpenIdAssociationRepository::class,
IUserPasswordResetRequestRepository::class,
IServerExtensionRepository::class,
IOpenIdTrustedSiteRepository::class,
IOpenIdAssociationRepository::class,
IServerConfigurationRepository::class,
IUserExceptionTrailRepository::class,
IBannedIPRepository::class,
IWhiteListedIPRepository::class,
IUserRepository::class,
IResourceServerRepository::class,
IApiRepository::class,
IApiEndpointRepository::class,
IClientRepository::class,
IAccessTokenRepository::class,
IRefreshTokenRepository::class,
IApiScopeRepository::class,
IApiScopeGroupRepository::class,
IOAuth2TrailExceptionRepository::class,
IClientPublicKeyRepository::class,
IServerPrivateKeyRepository::class,
IClientRepository::class,
IApiScopeGroupRepository::class,
IApiEndpointRepository::class,
IRefreshTokenRepository::class,
IAccessTokenRepository::class,
IApiScopeRepository::class,
IApiRepository::class,
IResourceServerRepository::class,
IWhiteListedIPRepository::class,
IUserRegistrationRequestRepository::class,
ISpamEstimatorFeedRepository::class,
IDisqusSSOProfileRepository::class,
IRocketChatSSOProfileRepository::class,
IStreamChatSSOProfileRepository::class,
IStreamChatSSOProfileRepository::class
];
}
}