symfony/symfony — pull request #5303 by zerrvox (2012-08-20 13:03:47+00:00)
Title: [Security] Check for RoleInterface instead of Role object in RoleSecurityIdentity 

This allows for third party Role objects to be used without extending the core Role class. This corresponds to how the UserSecurityIdentity class works and what I believe is the expected behavior.

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: n/a
Fixes the following tickets: n/a
Todo: Write tests
License of the code: MIT
Documentation PR: n/a