RamyHakam / multi_tenancy_bundle

Symfony 5 /6 bundle to support multi-tenants
MIT License
81 stars 24 forks source link

Deprecated the url connection parameter DBAL 3.6 #25

Closed emelchiordev closed 5 months ago

emelchiordev commented 11 months ago

Hi !

in DBAL 3.6 =>

DBAL ships with a new and configurable DSN parser that can be used to parse a database URL into connection parameters understood by DriverManager.

Before $connection = DriverManager::getConnection( ['url' => 'mysql://my-user:t0ps3cr3t@my-host/my-database'] );

After $dsnParser = new DsnParser(['mysql' => 'pdo_mysql']); $connection = DriverManager::getConnection( $dsnParser->parse('mysql://my-user:t0ps3cr3t@my-host/my-database') );

I have modified the service file DbService.php in my project.

RamyHakam commented 10 months ago

Thanx for share this issue I will Create a PR for it