SensioFrameworkExtraBundle
SensioFrameworkExtraBundle copied to clipboard
Support for `BackedEnum`
It would be really great if BackedEnum
are supported with IsGranted
attribute.
Symfony's voters don't support them properly yet, so that would be the first step, I suppose.
@derrabus After reading this comment I think it's question if Symfony's voters will support BackedEnum
any time soon. What about at least add support for BackedEnum<string>
to the IsGranted
constructor where we can get its value which is string
and thus compatible with Symfony's voters?
@trearcul If the voters don't support enums, IsGranted
shouldn't either.
Please have a look at this RFC. If it passes, I wouldn't bother about this issue anympore.