src/Kunstmaan/AdminListBundle/Controller/AdminListController.php
protected function doIndexAction(AbstractAdminListConfigurator $configurator, Request $request)
    {
        $em = $this->getEntityManager();
        /* @var AdminList $adminList */
        $adminList = $this->container->get('kunstmaan_adminlist.factory')->createList($configurator, $em);
        $adminList->bindRequest($request);

        $this->buildSortableFieldActions($configurator);

        return new Response(
            $this->renderView(
                $configurator->getListTemplate(),
                array('adminlist' => $adminList, 'adminlistconfigurator' => $configurator, 'addparams' => array())
            )
        );
    }
protected function doIndexAction(AbstractAdminListConfigurator $configurator, Request $request)
    {
        $em = $this->getEntityManager();
        /* @var AdminList $adminList */
        $adminList = $this->container->get('kunstmaan_adminlist.factory')->createList($configurator, $em);
        $adminList->bindRequest($request);

        $this->buildSortableFieldActions($configurator);

        return new Response(
            $this->renderView(
                $configurator->getListTemplate(),
                array('adminlist' => $adminList, 'adminlistconfigurator' => $configurator, 'addparams' => array())
            )
        );
    }
protected function doIndexAction ( AbstractAdminListConfigurator $ configurator , Request $ request ) { $ em = $ this -> getEntityManager ( ) ; /* @var AdminList $adminList */ $ adminList = $ this -> container -> get ( 'kunstmaan_adminlist.factory' ) -> createList ( $ configurator , $ em ) ; $ adminList -> bindRequest ( $ request ) ; $ this -> buildSortableFieldActions ( $ configurator ) ; return new Response ( $ this -> renderView ( $ configurator -> getListTemplate ( ) , array ( 'adminlist' => $ adminList , 'adminlistconfigurator' => $ configurator , 'addparams' => array ( ) ) ) ) ; }
Shows the list of entities

@param AbstractAdminListConfigurator $configurator
@param null|Request                  $request

@return Response
Shows the list of entities