Skip to content

[Security] Rename $subject to $object #34764

Closed
@vudaltsov

Description

@vudaltsov

User creates an article. User is the subject (the one who does the action) and article is the object (what action is applied to). See https://www.lexico.com/en/grammar/subjects-and-objects or any other resource on the topic.

Currently we have a wrong variable name in Security, VoterInterface and exception classes. The AccessDecisionManagerInterface is nonetheless correct.

I propose to replace $subject with $object in 4.3 and redeprecate (see #19969) AccessDeniedException::(g|s)etSubject in master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)SecurityStalled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions