Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

Commit 2cc74fb

Browse files
author
Loek van der Linde
committed
Lock down CarController
1 parent dd29575 commit 2cc74fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/AppBundle/Controller/CarController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
use Symfony\Component\HttpFoundation\Request;
1111
use Symfony\Component\HttpFoundation\Response;
1212
use Webmozart\Assert\Assert;
13+
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
1314

15+
/**
16+
* Class CarController
17+
* @package AppBundle\Controller
18+
* @Security("is_granted('ROLE_USER')")
19+
*/
1420
class CarController extends FOSRestController
1521
{
1622
/**

0 commit comments

Comments
 (0)