Skip to content

Too concrete fromServices method name in ConfigRetrieverInterface #134

@antonkomarev

Description

@antonkomarev

Issue / Motivation:

I have to overwrite ConfigRetriever with my own implementation as I've described in #133.

I've created my own CustomConfigRetriever class and when started to implement ConfigRetrieverInterface understood that resolving method must be named fromServices. From my point of view it's too concrete name, because config might be stored not in services config file.

Proposed solution:

Rename it to something more generalized:

  • retrieve
  • resolve
  • get
  • forProvider
  • ??? (any other name)
return resolve(ConfigRetrieverInterface::class)->forProvider(
    $providerName, $providerClass::additionalConfigKeys()
);

Obviously, it's breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions