CodeIgniter authentication system based on Doctrine / acl

I am working on a CodeIgniter / Doctrine based web application. I tested several auth libraries, but they all use ActiveRecord. Is there a plugin / library that uses Doctrine, or can it be adapted to Doctrine ?! Or can I use both Doctrine and CodeIgniter in a project ?!

+4
source share
1 answer

You can adapt any auth plugin / library to use Doctrine instead of ActiveRecord. It can be a lot of work to dig the code, but essentially you have to figure out what the / lib plugin is trying to do with the record (access, change, etc.), and then replicate it using the doctrine instruction and return the data like expected using the / lib plugin.

I did not use any Auth library / plugin with Doctrine, but I created an ACL for my application using interceptors (a pre-controller or post-controller works) that works with Doctrine.

0
source

Source: https://habr.com/ru/post/1305744/


All Articles