symfony/symfony — pull request #5909 by iBiryukov (2012-11-05 03:39:14+00:00)
Title: Allow Custom Roles to implement the RoleInterface

Allow Custom roles to implement the RoleInterface rather than concreate class.
Otherwise, in the constructor, if a custom role (that implements the interface only)
is provided, the if statement is never entered.
And then the comparison in equals method fails too.

Spent an honour debugging why my class level roles based permissions
weren't working.