Skip to content

[Mate][Symfony] Add security profiler collector formatter#2052

Draft
wachterjohannes wants to merge 1 commit into
symfony:mainfrom
wachterjohannes:mate-profiler-formatter-security
Draft

[Mate][Symfony] Add security profiler collector formatter#2052
wachterjohannes wants to merge 1 commit into
symfony:mainfrom
wachterjohannes:mate-profiler-formatter-security

Conversation

@wachterjohannes
Copy link
Copy Markdown
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues n/a
License MIT

Adds SecurityCollectorFormatter which formats SecurityDataCollector data for the Symfony Mate profiler MCP tool. Registered conditionally via class_exists(SecurityDataCollector::class) since symfony/security-bundle is optional.

getSummary() returns enabled, authenticated, user, roles, and impersonated. format() adds voter strategy, voter list, access decision log (capped at 50), and firewall config.

Sensitive fields — getToken(), getTokenClass(), getLogoutUrl() — are intentionally excluded. Adds symfony/security-bundle to require-dev and suggest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant