Skip to content

Commit

Permalink
The usage of the setRequestParameters method in the FormViewBuilder i…
Browse files Browse the repository at this point in the history
…s deprecated.
  • Loading branch information
matthiasseghers committed Apr 14, 2023
1 parent 7577085 commit b6c5794
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cookbook/securing-your-application.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ needs some updating. You can add the permission tab as shown below:
->createFormViewBuilder('sulu_example.edit_form.permissions', '/permissions')
->setResourceKey('permissions')
->setFormKey('permission_details')
->setRequestParameters(['resourceKey' => 'example'])
->addRequestParameters(['resourceKey' => 'example'])
->setTabCondition('_permissions.security')
->setTabTitle('sulu_security.permissions')
->addToolbarActions([new ToolbarAction('sulu_admin.save')])
Expand All @@ -180,11 +180,7 @@ needs some updating. You can add the permission tab as shown below:
}
}
.. note::

The usage of the ``setRequestParameters`` method in the FormViewBuilder is deprecated. Please use ``addRequestParameters`` instead.

The important option here is set in the ``setRequestParameters`` call, which
The important option here is set in the ``addRequestParameters`` call, which
defines for which resource this permission form is used. In order for that to
work the relation between the ``resourceKey`` and the security context and the
security class has to be configured:
Expand Down

0 comments on commit b6c5794

Please sign in to comment.