Hi,

I would like to configure security layer from a specific Bundle, how can i 
do that ?

I've naively tried to add the following line into app/config.yml :

security.config: ~

And then into my bundle extension :

    public function configLoad($config, ContainerBuilder $container)
    {
        $loader = new XmlFileLoader($container, 
__DIR__.'/../Resources/config');
        $loader->load('security.xml');
    } 

security.xml is at "path/to/my/Bundle/Resources/config/security.xml" and 
contains :

<srv:container xmlns="http://www.symfony-project.org/schema/dic/security";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:srv="http://www.symfony-project.org/schema/dic/services";
    xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services 
http://www.symfony-project.org/schema/dic/services/services-1.0.xsd";>

<!-- configuration ..... -->

</srv:container>

The documentation talks about externalisation of security related 
configuration file but doesn't explain how to do it :)

Any idea ?


Thanks.
Benjamin.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to