You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #6577 Fix AdminDashboard attribute routes type (JorickPepin)
This PR was merged into the 4.x branch.
Discussion
----------
Fix `AdminDashboard` attribute routes type
The following configuration, which seems valid according to [the doc](https://symfony.com/bundles/EasyAdminBundle/4.x/crud.html#crud-routes), does not pass type validation (`Array does not have offset 'routeName'`):
```PHP
#[AdminDashboard([
'new' => ['routePath' => 'creer'],
'edit' => ['routePath' => '{entityId}/modifier'],
'delete' => ['routePath' => '{entityId}/supprimer'],
])]
class DashboardController extends AbstractDashboardController
```
Commits
-------
cd18514 Fix `AdminDashboard` attribute routes type
0 commit comments