zerodine / MongoDBAclBundle

This bundle allows the use of MongoDB as the storage layer for the Symfony ACLs component.
21 stars 32 forks source link

Can not call init method from outside #20

Closed monbro closed 11 years ago

monbro commented 11 years ago

It would be nice to keep the acl init process more modularised. So that you can call the command "init:acl:mongodb" as a simple method from outside. It would be already helpful, if the codeblock inside IamPersistent\MongoDBAclBundle\Command\InitAclMongoDBCommand::execute() would live in its own function without any parameter. So you could easily create an instance of it, set the container and execute the init function.

iampersistent commented 11 years ago

Where are thinking this code should go? I don't really know a use case for this.

monbro commented 11 years ago

well I guess the case was, that in the first steps I never created / assigned any rights to my datafixtures but tried to check them or something like this.