JMSSecurityExtraBundle
                                
                                
                                
                                    JMSSecurityExtraBundle copied to clipboard
                            
                            
                            
                        Constants in hasAnyRoles expression
Constants in hasAnyRoles expression doesn't work.
@Security\PreAuthorize("hasAnyRole(Role::USER,  Role::CUSTOMER)")
                                    
                                    
                                    
                                
up
I think it should be implemented with a new ExpressionLanguage component
if you want to use the ExpressionLanguage component, use the @Security annotation of SensioFrameworkExtraBundle 3.0 instead, as it does exactly that