Skip to content

ConfigResolver overwriting #133

@antonkomarev

Description

@antonkomarev

Issue / Motivation:

I can't store configuration of provider in services config file.
Because of it I'm receiving MissingConfigException:

There is no services entry for github

I've tried to replace ConfigResolver with my own implementation.
Added to App\Providers\AppServiceProvider:

$this->app->singleton(
    \SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface::class,
    \App\CustomConfigRetriever::class
);

But no luck, because ServiceProvider of the package loading after the AppServiceProvider and overwrites my binding.

Proposed solution:

It looks like I have to disable auto-discovery of "socialiteproviders/manager" in composer.json and load service provider manually, and only after that rebind ConfigResolver. Is there any other thoughts how this could be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions