We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/cakephp/cakephp/blob/5.x/src/Database/Connection.php#L139-L147
In Connection::createDrivers(), passing in a Driver instance is marked legacy, but this config path was not marked deprecated in 5.0.
Connection::createDrivers()
Is this still considered legacy and should it be deprecated?
if (!is_string($driver)) { assert($driver instanceof Driver); if (!$driver->enabled()) { throw new MissingExtensionException(['driver' => get_class($driver), 'name' => $this->configName()]); } // Legacy support for setting instance instead of driver class return [self::ROLE_READ => $driver, self::ROLE_WRITE => $driver]; }
5.0
No response
The text was updated successfully, but these errors were encountered:
CakePHP 4 had Connection::setDriver() which might be a part of this support.
Connection::setDriver()
https://github.com/cakephp/cakephp/blob/4.x/src/Database/Connection.php#L251
We dropped setDriver() in 5.0.
setDriver()
Sorry, something went wrong.
I am pretty sure the setDriver() was primarily for testing and doesn't have an actual use case.
I would say yes. I can't think of any scenarios in the framework where we need to pass driver instances in.
No branches or pull requests
Description
https://github.com/cakephp/cakephp/blob/5.x/src/Database/Connection.php#L139-L147
In
Connection::createDrivers()
, passing in a Driver instance is marked legacy, but this config path was not marked deprecated in 5.0.Is this still considered legacy and should it be deprecated?
CakePHP Version
5.0
PHP Version
No response
The text was updated successfully, but these errors were encountered: