Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Henrik Bjørnskov' Blog:
Symfony2: Quick tip for your security configuration
Dec 27, 2011 @ 08:40:45

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.

tagged: symfony2 framework security bundle checkpath path

Link: