Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cookbook][Security] Clarification on the the use of Voter::supportsClass #3702

Closed
Labels
SecurityactionableClear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)
@bystones

Description

@bystones

Hello,
I noticed that the cookbook (http://symfony.com/doc/master/cookbook/security/voters_data_permission.html#creating-the-custom-voter) uses instanceof in the supportsClass method even though the api states that the parameter $class is a string (http://api.symfony.com/master/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.html#method_supportsClass).
I'm now unsure if the cookbook is wrong and hope you can clarify and/or correct it.

Greetings

Metadata

Metadata

Assignees

No one assigned

    Labels

    SecurityactionableClear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp