News Feed
Sections




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

Robert Basic's Blog:
Importing Symfony2 security settings from a bundle
August 25, 2011 @ 11:58:40

In a new post to his blog Robert Basic takes a brief look at importing Symfony2 security settings from a bundle he's been creating back into the main configuration.

I started to work on/figuring out the security part in Symfony2 and one part where the docs fail so far is to explain how to import security settings from a bundle. Once I put some thinking into it, it's pretty easy actually. Simply import the needed security file in your main config file.

His trick is to use the "imports" key in his YAML config file to define the resource to pull from in his config.xml. More information on the format of the security file can be found here in the Symfony documentation. It helps you define authentication mechanisms, authorization models and working with access control and roles.

0 comments voice your opinion now!
import security setting symfoyny2 bundle configuration resource


blog comments powered by Disqus

Similar Posts

Hasin Hayder's Blog: FeedPHP is going to be the largest PHP News Source

CodePoets.co.uk: How to use PHP and PEAR MDB2 (Tutorial)

Greg Beaver\'s Blog: pharring a web application - phpMyAdmin

Stefan Koopmanschap's Blog: Using git-svn with Symfony2's deps installer

Gonzalo Ayuso: The reason why singleton is a "problem" with PHPUnit


Community Events





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


voicesoftheelephpant security introduction release community framework interview podcast series symfony opinion language package laravel tool library version application update composer

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