Created
May 18, 2019 10:32
-
-
Save ismail1432/823f26d780380237d3853426bb8bb2f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Validator; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* @Annotation | |
*/ | |
class Role extends Constraint | |
{ | |
public $message = 'You are not allowed to do this stuff !'; | |
// will contains the allowed role | |
public $role; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment