Skip to content

Instantly share code, notes, and snippets.

@nebkam
Created January 9, 2020 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nebkam/e7257c45c7275d5ea9aa509c1b0763c1 to your computer and use it in GitHub Desktop.
Save nebkam/e7257c45c7275d5ea9aa509c1b0763c1 to your computer and use it in GitHub Desktop.
<?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