kookas/security-checker

Check whether the user can access a route based on its @Security annotation.

v0.9 2017-04-28 15:02 UTC

This package is not auto-updated.

Last update: 2024-05-06 04:29:17 UTC


README

SecurityCheckerBundle for Symfony and Twig lets you check whether the current user could access a given route based on that route's @Security annotation (it does not work for any other methods).

You could use this to, for example, only show a page link to a user who can actually access that page, without repeating your security definitions in the Twig template.