src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php
public function indexAction(Request $request)
    {
        /* @var EntityManager $em */
        $em = $this->getDoctrine()->getManager();
        $aclHelper = $this->container->get('kunstmaan_admin.acl.helper');

        /* @var AdminList $adminList */
        $adminList = $this->get('kunstmaan_adminlist.factory')->createList(
            new FormPageAdminListConfigurator($em, $aclHelper, PermissionMap::PERMISSION_VIEW),
            $em
        );
        $adminList->bindRequest($request);

        return array('adminlist' => $adminList);
    }
public function indexAction(Request $request)
    {
        /* @var EntityManager $em */
        $em = $this->getDoctrine()->getManager();
        $aclHelper = $this->container->get('kunstmaan_admin.acl.helper');

        /* @var AdminList $adminList */
        $adminList = $this->get('kunstmaan_adminlist.factory')->createList(
            new FormPageAdminListConfigurator($em, $aclHelper, PermissionMap::PERMISSION_VIEW),
            $em
        );
        $adminList->bindRequest($request);

        return array('adminlist' => $adminList);
    }
public function indexAction ( Request $ request ) { /* @var EntityManager $em */ $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ aclHelper = $ this -> container -> get ( 'kunstmaan_admin.acl.helper' ) ; /* @var AdminList $adminList */ $ adminList = $ this -> get ( 'kunstmaan_adminlist.factory' ) -> createList ( new FormPageAdminListConfigurator ( $ em , $ aclHelper , PermissionMap :: PERMISSION_VIEW ) , $ em ) ; $ adminList -> bindRequest ( $ request ) ; return array ( 'adminlist' => $ adminList ) ; }
The index action will use an admin list to list all the form pages

@Route("/", name="KunstmaanFormBundle_formsubmissions")
@Template("KunstmaanAdminListBundle:Default:list.html.twig")

@return array
The index action will use an admin list to list all the form pages