2016-03-21 8 views
0

Ich versuche, eine einfache FOSUser-Instanz in meinem neuen symfony2-Projekt (v2.8) einzurichten. Ich habe das Tutorial zur Dokumentation genau so ausgeführt, wie es heißt. Und ich bin der aktuelle Fehler immerSymfony2 FOSUSER Ungültige Ressource

InvalidConfigurationException in ArrayNode.php line 317: 
Unrecognized option "resource" under "fos_user" 
in ArrayNode.php line 317 
at ArrayNode->normalizeValue(array('db_driver' => 'orm', 'firewall_name' => 'main', 'user_class' => 'AuthBundle\Entity\User', 'resource' => '@FOSUserBundle\Resources\config outingll.xml')) in BaseNode.php line 264 
at BaseNode->normalize(array('db_driver' => 'orm', 'firewall_name' => 'main', 'user_class' => 'AuthBundle\Entity\User', 'resource' => '@FOSUserBundle\Resources\config outingll.xml')) in Processor.php line 33 
at Processor->process(object(ArrayNode), array(array('db_driver' => 'orm', 'firewall_name' => 'main', 'user_class' => 'AuthBundle\Entity\User', 'resource' => '@FOSUserBundle\Resources\config outingll.xml'))) in Processor.php line 50 
at Processor->processConfiguration(object(Configuration), array(array('db_driver' => 'orm', 'firewall_name' => 'main', 'user_class' => 'AuthBundle\Entity\User', 'resource' => '@FOSUserBundle\Resources\config outingll.xml'))) in FOSUserExtension.php line 45 
at FOSUserExtension->load(array(array('db_driver' => 'orm', 'firewall_name' => 'main', 'user_class' => 'AuthBundle\Entity\User', 'resource' => '@FOSUserBundle\Resources\config outingll.xml')), object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 55 
at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 39 
at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in Compiler.php line 107 
at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 593 
at ContainerBuilder->compile() in Kernel.php line 511 
at Kernel->initializeContainer() in Kernel.php line 133 
at Kernel->boot() in Kernel.php line 182 
at Kernel->handle(object(Request)) in app_dev.php line 30 
at require('/home/sergio/Desktop/RSU/web/app_dev.php') in router_dev.php line 40 

bei config.yml i die aktuelle identation bekam

# fos 
fos_user: 
    db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel' 
    firewall_name: main 
    user_class: AuthBundle\Entity\User 
    resource: "@FOSUserBundle\Resources\config\routing\all.xml" 

Alles wie im Tutorial ist, ich kommentierte die "Ressource" Teil und ich konnte DB aktualisieren Schema, Symfony kann die FOSUserBundle \ Resources \ config \ routing \ all.xml nicht finden. Irgendwelche Vorschläge, wie man das löst?

danke.

Antwort