Skip to content

Commit 10660b6

Browse files
committed
feat: add filter name to filter class
1 parent b1d32a6 commit 10660b6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Filters/GroupFilter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
class GroupFilter extends AbstractAuthFilter
1111
{
12+
protected string $filterName = 'group';
13+
1214
/**
1315
* Ensures the user is logged in and a member of one or
1416
* more groups as specified in the filter.

src/Filters/PermissionFilter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010
class PermissionFilter extends AbstractAuthFilter
1111
{
12+
protected string $filterName = 'permission';
13+
1214
/**
1315
* Ensures the user is logged in and has one or more
1416
* of the permissions as specified in the filter.

0 commit comments

Comments
 (0)