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
* @param array<class-string<\Shopsys\AdministrationBundle\Controller\AbstractCrudController>, string|null> $customRoleConstants role declared by the ForRole attribute, or null for the generated role, indexed by controller class
16
+
*/
17
+
publicfunction__construct(
18
+
privatereadonlyarray$customRoleConstants = [],
19
+
) {
20
+
}
21
+
22
+
/**
23
+
* Returns the role declared by the ForRole attribute on the CRUD controller or one of its extensions, or null when the controller uses its generated role
// CRUD controllers use their role constant (generated, or set by ForRole — resolved at compile time including extension overrides) so custom routes are guarded by the same role as the built-in actions, other classes read the ForRole attribute directly
0 commit comments