Created
January 9, 2020 22:49
-
-
Save nebkam/e7257c45c7275d5ea9aa509c1b0763c1 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\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; | |
class FooController | |
{ | |
/** | |
* @Security("is_granted('ROLE_ADMIN') or is_granted('ROLE_SELLER')") | |
*/ | |
public function fooAction() | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment