Skip to content

Commit

Permalink
Merge pull request #180 from berarma/fix-docs
Browse files Browse the repository at this point in the history
More config()/setConfig() fixes
  • Loading branch information
ADmad committed Feb 7, 2023
2 parents 0948900 + c1d1545 commit fb07b50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/api-usage-advanced/inclusion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ This is done using the listener configuration:
{
$this->Crud
->listener('jsonApi')
->config('queryParameters.include.allowList', ['cultures', 'cities']);
->setConfig('queryParameters.include.allowList', ['cultures', 'cities']);
return $this->Crud->execute();
}
Expand All @@ -150,7 +150,7 @@ option to ``true``:
{
$this->Crud
->listener('jsonApi')
->config('queryParameters.include.denyList', true);
->setConfig('queryParameters.include.denyList', true);
return $this->Crud->execute();
}
2 changes: 1 addition & 1 deletion docs/listener-configuration/listener-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ by specifying a callable.

.. code-block:: phpinline
$this->Crud->listener('jsonApi')->config('queryParameter.parent', [
$this->Crud->listener('jsonApi')->setConfig('queryParameter.parent', [
'callable' => function ($queryData, $subject) {
$subject->query->where('parent' => $queryData);
},
Expand Down

0 comments on commit fb07b50

Please sign in to comment.