Skip to content

Improve dependency injection for SignatureParamets in SignatureParser #1

@stratedge

Description

@stratedge

The SignatureParser class currently will call new SignatureArgument and new SignatureOption. This makes extending the library by injecting your own versions of those classes nearly impossible. The only way to inject your own implementation of either class would be to extend the SignatureParser class and overwrite the relevant methods.

Better to provide for injection of a factory to make those classes. This will make extending the library much easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    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