Created
May 18, 2019 10:32
-
-
Save ismail1432/7a085fe22893b9d99fb0f6a219a45fb0 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