voku / session2db

:crown: Session2DB - A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.
GNU Lesser General Public License v3.0
29 stars 7 forks source link

Connection using DBAL #15

Closed ghost closed 5 years ago

ghost commented 5 years ago

How to use doctrine/dbal or nextras/dbal for connection in getInstance?

DB::getInstance('localhost', 'andy', 'andy', 'database');

I've try using doctrine dbal but don't work!!!

voku commented 5 years ago

doc: https://github.com/voku/simple-mysqli#doctrinedbal-as-parent-driver tests: https://github.com/voku/simple-mysqli/blob/master/tests/SimpleDoctrinePdoTest.php#L30

... I hope this documentation and code examples can help you. Happy coding! :)

ghost commented 5 years ago

Thanks man!!!