Skip to content

Use Symfony/options-resolver #421

@Nyholm

Description

@Nyholm

Since #419 we have 3 constructor arguments. It is likely that a new feature will require a 4th one. It could be better to use an array instead. Especially for string/bool arguments.

$client = new Client($httpClient, ['api_version'=>'s2', 'enterprice_url'=>'foobar'])

These should be validated with the symfony option resolver and then stored an separate instance variables (like today)

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