Skip to content

Commit 51fb6f8

Browse files
committed
Keep the example in the context of a rest request
1 parent 54f79ea commit 51fb6f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use Curiosity26\AclHelperBundle\Helper\AclHelper;
2424
use Curiosity26\AclHelperBundle\Tests\Entity\TestObject;
2525
use Symfony\Component\Security\Acl\Permission\BasicPermissionMap;
2626

27-
class MyController extends \Symfony\Bundle\FrameworkBundle\Controller\Controller {
27+
class MyController extends FOSRestController implements ClassResourceInterface {
2828

2929
/**
3030
* @var AclHelper
@@ -40,7 +40,7 @@ class MyController extends \Symfony\Bundle\FrameworkBundle\Controller\Controller
4040
* @Rest\View()
4141
* @return array
4242
*/
43-
public function index()
43+
public function cgetAction()
4444
{
4545
// Get all of the TestObjects this user can view
4646
$agent = $this->aclHelper->createAgent(TestObject::class);

0 commit comments

Comments
 (0)