Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usage of deprecated method #771

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading