Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security] Make Role::$role protected #23025

Closed
@vudaltsov

Description

@vudaltsov
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 3.4

Since Symfony\Component\Security\Core\Role\RoleInterface is deprecated, there is no possibility to create a Role entity anymore. Symfony\Component\Security\Core\Role\Role::$role is private and extending the Role class doesn't allow to add mapping to that property.

I suggest making $role protected. If I am not mistaken this won't break existing child classes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions