src/PHPDish/Bundle/AdminBundle/DataGrid/UserFactory.php
public function factory()
    {
        $source = new Entity(self::getSourceClass());
        $gridBuilder = $this->gridFactory->createBuilder('grid', $source, [
            'persistence'  => true,
            'route'=> 'admin_user_index',
            'filterable'=> true,
            'sortable' => true,
            'max_per_page' => 20,
        ]);
        $this->addColumns($gridBuilder);
        $this->addFilters($gridBuilder);
        return $gridBuilder->getGrid();
    }
public function factory()
    {
        $source = new Entity(self::getSourceClass());
        $gridBuilder = $this->gridFactory->createBuilder('grid', $source, [
            'persistence'  => true,
            'route'=> 'admin_user_index',
            'filterable'=> true,
            'sortable' => true,
            'max_per_page' => 20,
        ]);
        $this->addColumns($gridBuilder);
        $this->addFilters($gridBuilder);
        return $gridBuilder->getGrid();
    }
{@inheritdoc}