From c5da51d975c34d6006dc40dde131187da7e21027 Mon Sep 17 00:00:00 2001 From: bravehurts2 Date: Sun, 23 Apr 2017 23:28:22 +0200 Subject: [PATCH] Update index.rst update configuration instruction --- Resources/doc/index.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Resources/doc/index.rst b/Resources/doc/index.rst index b497385..8b2ecd8 100644 --- a/Resources/doc/index.rst +++ b/Resources/doc/index.rst @@ -12,7 +12,7 @@ To install MongoDBAclBundle using composer add following line to you composer.js Use the composer update command to start the installation. After the installation add following line into the bundles array in your AppKernel.php file:: # AppKernel.php - new PWalkow\MongoDBAclBundle\PWalkowMongoDBAclBundle() + new PWalkow\MongoDBAclBundle\MongoDBAclBundle() Configuration ------------- @@ -30,13 +30,17 @@ The next requirement is to add the provider to the security configuration:: security: acl: provider: mongodb_acl_provider - - + +Add Service:: + + # app/config/services.yml + mongodb_acl_provider: + parent: doctrine_mongodb.odm.security.acl.provider The full acl provider configuration options are listed below:: # app/config/config.yml - iam_persistent_mongo_db_acl: + pwalkow_mongo_db_acl: acl_provider: default_database: ~ collections: @@ -46,4 +50,4 @@ The full acl provider configuration options are listed below:: To initialize the MongoDB ACL run the following command:: - php app/console init:acl:mongodb \ No newline at end of file + php app/console init:acl:mongodb