Skip to content

Add ServiceProviderInterface annotation #128

Description

@charphi

@ServiceProviderInterface would be a simplified version of @ServiceDefinition with less options and better defaults.

Current issues:

  • #singleton and #mutability usage is confusing
  • there are too many options and some of them are used only in conjunction with others
  • #quantifier is the main option but is not pushed forward clearly to the user
  • custom class loader is not possible
  • the backend mechanism is not flexible
  • some default values are not ideal
  • some combinations of options lead to invalid use cases
  • the processor is difficult to test and maintain due to lot of options combination

Minimum features:

  1. Quantifier
  2. Custom class naming
  3. Batch loading
  4. Preprocessing (filtering/sorting/mapping)
  5. Local caching
  6. Reloading

Additional features:

  1. Custom class loading
  2. Thread safety
  3. Lazy loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions