Skip to content

Conversation

@Jurj-Bogdan
Copy link
Member

Based on #42 and expanded to all available Guard classes.

As discussed, * can be used as a placeholder for route names and will be replaced where found in such a way as preg_match should correctly select a requested route against the placeholder routes from the config.

Tested on a fresh dotkernel/admin project, but let me know if i've missed anything that might cause issues in more complex applications.

Signed-off-by: Jurj-Bogdan <bogdanjurj11@gmail.com>
@Jurj-Bogdan Jurj-Bogdan self-assigned this Oct 14, 2025
@Jurj-Bogdan Jurj-Bogdan linked an issue Oct 14, 2025 that may be closed by this pull request
Copy link
Member

@arhimede arhimede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an you add some tests ?
especially for the case when there is a collision of routes , to be clear the precedence

Signed-off-by: Jurj-Bogdan <bogdanjurj11@gmail.com>
@arhimede arhimede merged commit b83b328 into dotkernel:3.0 Oct 21, 2025
13 checks passed
Jurj-Bogdan pushed a commit to Jurj-Bogdan/dot-rbac-guard that referenced this pull request Oct 22, 2025
Jurj-Bogdan pushed a commit to Jurj-Bogdan/dot-rbac-guard that referenced this pull request Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow placeholders when using RoutePermissionGuard

3 participants