src/PHPDish/Bundle/AdminBundle/Grid/Twig/GridExtension.php
public function grid(GridInterface $grid, $theme =  null)
    {
        $this->initializeTemplate($theme);
        $grid->initialize();
        return $this->renderBlock('grid', [
            'grid' => $grid
        ]);
    }
public function grid(GridInterface $grid, $theme =  null)
    {
        $this->initializeTemplate($theme);
        $grid->initialize();
        return $this->renderBlock('grid', [
            'grid' => $grid
        ]);
    }
渲染一个grid

@param GridInterface $grid
@param null $theme
@return string