symfony/symfony — pull request #6012 by langj (2012-11-14 13:42:14+00:00)
Title: Securityidentity fix

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

RoleSecurityIdentity::getRole() returned the CustomRole Object when CustomRole did not extend the symfony Role.

With this patch RoleSecurityIdentity can also handle custom implementations of RoleInterface.

**Failing Tests:**
On my environment the tests for 2.0 results in 30 failing tests:

FAILURES!
Tests: 5075, Assertions: 11835, Failures: 30, Incomplete: 11, Skipped: 27.

Therefor I wrote "Symfony2 tests pass: no".
My changes introduce no new failing tests.