News Feed
Sections




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

Benjamin Eberlei:
Decoupling from Symfony Security and FOSUserBundle
September 05, 2013 @ 10:37:43

Benjamin Eberlei has posted some of the results of his work at decoupling Symfony security from the FOSUserBundle, one of the "Friends of Symfony" packages that provides easy user management in your application.

In this blog post I will show how to decouple your core application from the Symfony Security component and User bundles such as the FOSUserBundle. [...] This blog post will add another perspective on how to achieve decoupling from Symfony user and security with a very simple approach. With this puzzle piece and others I wrote about before (Controllers as Service, Param Converters) and other pieces I still need to write about, I would classify Symfony2 as a good framework.

He talks about some of the dependencies this bundle introduces and one way to mitigate it by extending the User object with your own custom entities. His example is a "Customer" entity that only defines the "id" and "username" properties.

0 comments voice your opinion now!
symfony security fosuserbundle decouple example

Link: http://www.whitewashing.de/2013/09/04/decoupling_from_symfony_security_and_fosuserbundle.html

blog comments powered by Disqus

Similar Posts

Community News: Latest PECL Releases for 02.26.2013

PHP.net: PHP 5.4.4 and PHP 5.3.14 released!

Chris Hartjes' Blog: The Devilís In The Details (or, Handling Sequences in Postgres in CakePHP)

Chris Roane's Blog: The Last Few Years: What a PHP Programmer Has Learned

Chris Shiflett\'s Blog: 2005 Highlights


Community Events





Don't see your event here?
Let us know!


opinion interview voicesoftheelephpant library install release laravel community language symfony podcast framework bugfix introduction deployment zendserver series package api unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework