Comments (9)
That would be nice but would need to refactor some parts to use adapter pattern. Currently the objects all use Doctrine directly.
Remember though that the dependency is on doctrine dbal, not ORM, this is quite light.
Envoyé de mon iPhone
Le 26 avr. 2013 à 13:02, Mech7 [email protected] a écrit :
Currently the db relies on doctrine, which is annoying if you already use zend\db
it would be nice if there would be a implementation for a zend's db provider.—
Reply to this email directly or view it on GitHub.
from zfc-rbac.
I made a provider for Zend\Db.
You can look in closed pull requests, but i didn't have the time to finish it.
from zfc-rbac.
I started this one : https://github.com/jmleroux/JmlRbacZdb
from zfc-rbac.
That looks nice. However is this REALLY needed ? Can't you just configure doctrine dbal ? I doubt this code will change a lot but this needs that we need to maintain the code at two places if we have this. Maybe @spiffyjr should have chosen Zend\Db from the ground up to add no new dependency, but well, Doctrine\DBAL is a pretty light library (and between us, it's better than Zend\Db).
from zfc-rbac.
Yea, but people using Zend\Db likely have a connection setup for it already and aren't using Doctrine DBAL at all. Perhaps the best option is to just use a PDO connection instead?
from zfc-rbac.
It won't remove any problem. In each cases people using Zend\Db will have to rewrite their config connections parameters even if we use PDO. But yeah, PDO is the lightest solution of all =).
from zfc-rbac.
Yea, but the base of Zend\Db and Doctrine\DBAL is PDO, correct? They could all use the PDO and inject it into either Doctrine\DBAL or Zend\Db.
from zfc-rbac.
The base of zend\db is not pdo, but it has a pdo adapter (and others).. the main problem is that i would not like to write my own rbac module, but I don't want 2 database connections (and t2 different db abstractions layers) in my application either ;)
from zfc-rbac.
Hi @mech7 ,
Next version of ZfcRbac (currently in refactor branch) is now more agnostic and does not rely on anything. It's up to the developer to develop its own providers.
from zfc-rbac.
Related Issues (20)
- Tag stable version for ZF3 compat HOT 6
- Looking for a new maintainer(s) HOT 5
- Missing use statement in ZfcRbac\Initializer\AuthorizationServiceInitializer HOT 1
- RedirectStrategy doesn't work with "ZF3" Eventmanager HOT 8
- RedirectStrategy + zf3 HOT 8
- Future HOT 23
- Very strange session regeneration issue when using ZfcUser with ZfcRbac HOT 3
- Fllow the cookbook I get a problem not fund the authorizationservice HOT 3
- Unable to resolve service "Zend\Authentication\AuthenticationService
- why i always get error flow the cookbook? i will show what happend with my application HOT 4
- Cannot get a name and parameters for RoleProviderPluginManager HOT 2
- a guard priority question HOT 1
- Is there Mechanism of a cache? HOT 1
- Problem with doctrine update
- What is the plan of 3.0 release? HOT 7
- Maybe we could have PermissionProvider?
- HierarchicalRoleInterface problem HOT 1
- Config for version 3.0 needs some fixing or explaining HOT 9
- Migrate to Laminas HOT 7
- Is there a migration to Laminas either on-going or planned?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zfc-rbac.