Created
January 9, 2020 22:45
-
-
Save nebkam/67f3da1bf9e24fa3bd08873edb71ff3b 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\IsGranted; | |
class FooController | |
{ | |
/** | |
* @IsGranted({"ROLE_ADMIN", "ROLE_SELLER"}) | |
*/ | |
public function fooAction() | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment