Skip to content

Commit

Permalink
Remove usage of deprecated method (#771)
Browse files Browse the repository at this point in the history
* Add deprecation notice

* The usage of the setRequestParameters method in the FormViewBuilder is deprecated.
  • Loading branch information
matthiasseghers authored Apr 29, 2024
1 parent 863b783 commit d68f2d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/securing-your-application.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,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 @@ -187,7 +187,7 @@ needs some updating. You can add the permission tab as shown below:
}
}
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 d68f2d7

Please sign in to comment.