Skip to content

Change the property visibility to private #83

@stof

Description

@stof

Currently, everything uses protected properties in the bundle. This means that all properties are potential extension points, and a change on them will be a BC break.

As we want to follow semver, I think we should rather use the private visibility for properties and switch to protected only for places where we decide to expose a supported extension point. This will make thing easier to manage BC. A request to increase the visibility will need to be justified with a use case for the extension point (allowing us to decide whether it is the right way to provide such extension point).

Note that this rule will be common for our users, as it is the rule applied in Symfony itself.

what do you think about it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions