PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Henrik Bjørnskov' Blog: Symfony2: Quick tip for your security configuration

Note: This article was originally published at PHPDeveloper on 28 December 2011.
PHPDeveloper

Henrik Bjørnskov has a quick new post with a security tip for those using the Symfony2 framework in its configuration.

Earlier when playing around with the Security component and SecurityBundle i found that for all paths you can specify a route name and the component will match it when check for the request paths.

Setting this up in your configuration gives you more control over the paths that are matched as well as more flexibility in defining them. He includes a note about a change you might have to make to the SecurityBundle's code to get the "check_path" part working correctly. You can find out more about the SecurityBundle's integration in this blog post from Pablo Bandin.