public function indexAction(Request $request, AbstractAdmin $admin)
    {
        $this->secure($admin, ContentVoter::LIST_CONTENT);

        // create our datagrid
        $datagrid = $this->get('shuwee_admin.datagrid');

        // bind our request to the datagrid
        $datagrid->bind($admin, $request);

        return $this->render(
            'ShuweeAdminBundle:Content:index.html.twig',
            [
                'datagrid' => $datagrid,
            ]
        );
    }
public function indexAction(Request $request, AbstractAdmin $admin)
    {
        $this->secure($admin, ContentVoter::LIST_CONTENT);

        // create our datagrid
        $datagrid = $this->get('shuwee_admin.datagrid');

        // bind our request to the datagrid
        $datagrid->bind($admin, $request);

        return $this->render(
            'ShuweeAdminBundle:Content:index.html.twig',
            [
                'datagrid' => $datagrid,
            ]
        );
    }
public function indexAction ( Request $ request , AbstractAdmin $ admin ) { $ this -> secure ( $ admin , ContentVoter :: LIST_CONTENT ) ; // create our datagrid $ datagrid = $ this -> get ( 'shuwee_admin.datagrid' ) ; // bind our request to the datagrid $ datagrid -> bind ( $ admin , $ request ) ; return $ this -> render ( 'ShuweeAdminBundle:Content:index.html.twig' , [ 'datagrid' => $ datagrid , ] ) ; }
List all entities of the type supported by given Admin

@param \Symfony\Component\HttpFoundation\Request $request
@param \Wanjee\Shuwee\AdminBundle\Admin\AbstractAdmin $admin
@return \Symfony\Component\HttpFoundation\Response
List all entities of the type supported by given Admin