Skip to content

Commit

Permalink
docs: fix usage section missing data table factory aware trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Feb 20, 2024
1 parent 7001016 commit 6f8b516
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/src/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ In most cases, the data tables are created in the controller, using the `createD

```php
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Kreyu\Bundle\DataTableBundle\DataTableFactoryAwareTrait; [!code ++]

class ProductController extends AbstractController
{
use DataTableFactoryAwareTrait; // [!code ++]

public function index()
{
$dataTable = $this->createDataTable(ProductDataTableType::class);
$dataTable = $this->createDataTable(ProductDataTableType::class); // [!code ++]
}
}
```
Expand Down

0 comments on commit 6f8b516

Please sign in to comment.