Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Remove options for role provider #313

Open
bakura10 opened this issue Nov 18, 2015 · 0 comments
Open

Remove options for role provider #313

bakura10 opened this issue Nov 18, 2015 · 0 comments

Comments

@bakura10
Copy link
Member

Hi,

I think the options can be removed here: https://github.com/ZF-Commons/zfc-rbac/blob/develop/src/Container/ObjectRepositoryRoleProviderFactory.php#L42

By using a config like that:

[
   'zfc_rbac' => [
      'role_provider' => [
          'option_1' => 'bar',
          'option_2' => 'baz'
      ]
   ]
]

And make sure that the role provider reads 'zfc_rbac/role_provider', this way we can remove the dependency to ServiceManager and only typehints on Container Interop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant