Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin dependency configuration #23

Open
cheebo opened this issue Dec 28, 2019 · 0 comments
Open

Plugin dependency configuration #23

cheebo opened this issue Dec 28, 2019 · 0 comments
Labels
type: enhancement New feature description and requests
Milestone

Comments

@cheebo
Copy link
Contributor

cheebo commented Dec 28, 2019

Plugin can request interfaces from the Registry.

Nori must support:

  1. Registry can load multiple plugins with the same interface with no error.

For example, 2 plugins implement nori/Cache interface. One plugin implements this interface for reads, another plugin implements this interfaces for memcached.

It would be great to have opportunity to configure which plugin Registry must return on interface request by specific plugin.

For example, templates plugin requests nori/Cache interface and receives memcached but sessions plugin receives redis on the same interface request .

Config example:

plugins: 
  - nori/templates: # plugin id
    - nori/Cache: "nori/redis:2.1.3" # interface: id:version
  - nori/sessions: # plugin id
    - nori/Cache: "nori/memcached:1.0.2" # interface: id:version
@cheebo cheebo added the type: enhancement New feature description and requests label Dec 28, 2019
@cheebo cheebo added this to the backlog milestone Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature description and requests
Projects
None yet
Development

No branches or pull requests

1 participant