symfony/symfony — Issue #3279: InvalidConfigurationException: Unrecognized options "users" under "security.providers.in_memory"
Author: omissis
Created: 2012-02-06 13:05:44+00:00
State: open

Hi, I found this exception in the process of updating a just- downloaded standard edition to Symfony 2.1 using the master branch, I've just added the Doctrine and the JMSSerializerBundle Bundles.
I have checked the upgrade instruction and found nothing about it, I've also recreate the bootstrap cache.

Here's the stack trace:

1.	in /vendor/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php line 279

2.	at ArrayNode->normalizeValue(array('users' => array('user' => array('password' => 'userpass', 'roles' => array('ROLE_USER')), 'admin' =>array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))) in /vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php line 237

3.	at BaseNode->normalize(array('users' => array('user' => array('password' => 'userpass', 'roles' => array('ROLE_USER')), 'admin' =>array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))) in /vendor/symfony/src/Symfony/Component/Config/Definition/PrototypedArrayNode.php line 245

4.	at PrototypedArrayNode->normalizeValue(array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' =>array('ROLE_USER')), 'admin' => array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN')))))) in /vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php line 237

5.	at BaseNode->normalize(array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' => array('ROLE_USER')), 'admin' => array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN')))))) in /vendor/symfony/src/Symfony/Component/Config/Definition/ArrayNode.php line 271

6.	at ArrayNode->normalizeValue(array('encoders' => array('Symfony\Component\Security\Core\User\User' => 'plaintext'), 'role_hierarchy' =>array('ROLE_ADMIN' => 'ROLE_USER', 'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH')), 'providers' => array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' => array('ROLE_USER')), 'admin' =>array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))), 'firewalls' => array('dev' => array('pattern' => '^/(_(profiler|wdt)|css|images|js)/', 'security' => false), 'login' => array('pattern' => '^/demo/secured/login$', 'security' => false), 'secured_area' => array('pattern' => '^/demo/secured/', 'form_login' => array('check_path' => '/demo/secured/login_check', 'login_path' => '/demo/secured/login'), 'logout' => array('path' => '/demo/secured/logout', 'target' => '/demo/'))), 'access_control' => null)) in /vendor/symfony/src/Symfony/Component/Config/Definition/BaseNode.php line 237

7.	at BaseNode->normalize(array('encoders' => array('Symfony\Component\Security\Core\User\User' => 'plaintext'), 'role_hierarchy' =>array('ROLE_ADMIN' => 'ROLE_USER', 'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH')), 'providers' => array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' => array('ROLE_USER')), 'admin' =>array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))), 'firewalls' => array('dev' => array('pattern' => '^/(_(profiler|wdt)|css|images|js)/', 'security' => false), 'login' => array('pattern' => '^/demo/secured/login$', 'security' => false), 'secured_area' => array('pattern' => '^/demo/secured/', 'form_login' => array('check_path' => '/demo/secured/login_check', 'login_path' => '/demo/secured/login'), 'logout' => array('path' => '/demo/secured/logout', 'target' => '/demo/'))), 'access_control' => null)) in /vendor/symfony/src/Symfony/Component/Config/Definition/Processor.php line 35

8.	at Processor->process(object(ArrayNode), array(array('encoders' => array('Symfony\Component\Security\Core\User\User' => 'plaintext'), 'role_hierarchy' => array('ROLE_ADMIN' => 'ROLE_USER', 'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH')), 'providers' => array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' =>array('ROLE_USER')), 'admin' => array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))), 'firewalls' => array('dev' => array('pattern' => '^/(_(profiler|wdt)|css|images|js)/', 'security' => false), 'login' => array('pattern' => '^/demo/secured/login$', 'security' => false), 'secured_area' => array('pattern' => '^/demo/secured/', 'form_login' => array('check_path' => '/demo/secured/login_check', 'login_path' => '/demo/secured/login'), 'logout' => array('path' => '/demo/secured/logout', 'target' => '/demo/'))), 'access_control' => null))) in /vendor/symfony/src/Symfony/Component/Config/Definition/Processor.php line 52

9.	at Processor->processConfiguration(object(MainConfiguration), array(array('encoders' => array('Symfony\Component\Security\Core\User\User' => 'plaintext'), 'role_hierarchy' => array('ROLE_ADMIN' => 'ROLE_USER', 'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH')), 'providers' => array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' =>array('ROLE_USER')), 'admin' => array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))), 'firewalls' => array('dev' => array('pattern' => '^/(_(profiler|wdt)|css|images|js)/', 'security' => false), 'login' => array('pattern' => '^/demo/secured/login$', 'security' => false), 'secured_area' => array('pattern' => '^/demo/secured/', 'form_login' => array('check_path' => '/demo/secured/login_check', 'login_path' => '/demo/secured/login'), 'logout' => array('path' => '/demo/secured/logout', 'target' => '/demo/'))), 'access_control' => null))) in /vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/Extension.php line 103

10.	at Extension->processConfiguration(object(MainConfiguration), array(array('encoders' => array('Symfony\Component\Security\Core\User\User' => 'plaintext'), 'role_hierarchy' => array('ROLE_ADMIN' => 'ROLE_USER', 'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH')), 'providers' => array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' =>array('ROLE_USER')), 'admin' => array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))), 'firewalls' => array('dev' => array('pattern' => '^/(_(profiler|wdt)|css|images|js)/', 'security' => false), 'login' => array('pattern' => '^/demo/secured/login$', 'security' => false), 'secured_area' => array('pattern' => '^/demo/secured/', 'form_login' => array('check_path' => '/demo/secured/login_check', 'login_path' => '/demo/secured/login'), 'logout' => array('path' => '/demo/secured/logout', 'target' => '/demo/'))), 'access_control' => null))) in /vendor/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php line 54

11.	at SecurityExtension->load(array(array('encoders' => array('Symfony\Component\Security\Core\User\User' => 'plaintext'), 'role_hierarchy' =>array('ROLE_ADMIN' => 'ROLE_USER', 'ROLE_SUPER_ADMIN' => array('ROLE_USER', 'ROLE_ADMIN', 'ROLE_ALLOWED_TO_SWITCH')), 'providers' => array('in_memory' => array('users' => array('user' => array('password' => 'userpass', 'roles' => array('ROLE_USER')), 'admin' =>array('password' => 'adminpass', 'roles' => array('ROLE_ADMIN'))))), 'firewalls' => array('dev' => array('pattern' => '^/(_(profiler|wdt)|css|images|js)/', 'security' => false), 'login' => array('pattern' => '^/demo/secured/login$', 'security' => false), 'secured_area' => array('pattern' => '^/demo/secured/', 'form_login' => array('check_path' => '/demo/secured/login_check', 'login_path' => '/demo/secured/login'), 'logout' => array('path' => '/demo/secured/logout', 'target' => '/demo/'))), 'access_control' => null)),object(ContainerBuilder)) in /vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php line 42

12.	at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in /vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php line 39

13.	at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in /vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php line 119

14.	at Compiler->compile(object(ContainerBuilder)) in /vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 449

15.	at ContainerBuilder->compile() in /app/bootstrap.php.cache line 887

16.	at Kernel->buildContainer() in /app/bootstrap.php.cache line 796

17.	at Kernel->initializeContainer() in /app/bootstrap.php.cache line 518

18.	at Kernel->boot() in /app/bootstrap.php.cache line 561

19.	at Kernel->handle(object(Request)) in /web/app_dev.php line 24