File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use Curiosity26\AclHelperBundle\Helper\AclHelper;
2424use Curiosity26\AclHelperBundle\Tests\Entity\TestObject;
2525use 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);
You can’t perform that action at this time.
0 commit comments