v1.16.0
TL;DR
SyliusGridBundle 1.16.0 modernizes how grids are defined and customized. Grids become invokable, attribute-driven PHP classes, and we introduce Grid Mutators as the modern replacement for grid events with no breaking changes.
- Invokable Grids: define grids as plain invokable classes with the
#[AsGrid]attribute; no need to extend AbstractGrid or implement GridInterface. - Grid Mutators: customize existing grids via
#[AsGridMutator]+GridMutatorInterface, with priority support; works with both modern and legacy grids. - Fluent actions configuration: configure grid actions with the new
withActions,withMainActions,withItemActions,withSubItemActionsandwithBulkActionsbuilder methods, consistent withwithFieldsandwithFilters. - Improved make:grid maker: now generates modern invokable grids, plus better error messages.
What's Changed
- feat(DX): Invokable grids by @loic425 in #480
- build: support webmozart/assert 2.3 by @stlgaits in #478
- [CI] Add upmerge between 1.15 and 1.16 branches by @GSadee in #481
- [UPMERGE] 1.15 -> 1.16 by @SyliusBot in #482
- Remove unnecessary configuration by @loic425 in #483
- feat(invokabke-grids): Rework the compiler pass by @loic425 in #484
- Read grid metadata from #[AsGrid] attribute as invokable_grid tag fallback by @GSadee in #485
- feat(grid-builder): add withActions methods by @loic425 in #486
- feat(php-grids): Grid mutators by @loic425 in #487
- feat(mutators): Add support for mutators in legacy grids by @loic425 in #488
- feat(deprecations): Deprecate the legacy grids and the grid events by @loic425 in #491
- feat(maker): use new grid helpers in the Grid maker by @loic425 in #490
- Adding better error message by @mamazu in #489
- feat(README): Add a few notes about new deprecations by @loic425 in #492
- fix(README): Fix link to the grid converter by @loic425 in #493
- feat(maker): Remove AbstractGrid usage by @loic425 in #494
- fix(interfaces): Move builder interfaces into the Grid component by @loic425 in #495
- feat(builder): Add a few notes about moved interfaces and trigger dep… by @loic425 in #496
- feat(maintenance): Add PHPArkitect by @loic425 in #497
Full Changelog: v1.15.1...v1.16.0