You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecate "mongo" handler type in favor of new "mongodb" syntax
Define a new "mongodb" handler type. It accepts an "id" reference like the old "mongo" type; however, "uri" instead of a single "host" and "port". The "uri" option is more flexible.
Additionally, the "username" and "password" options have been renamed and are no longer used to modify the connection string directly ("mongo" never applied URL encoding). Instead, the options are set in the URI options array, which does not require encoding. The "mongodb" never requires a password, as a username alone is valid for some auth mechanisms.
Lastly, a "monolog-bundle" app name is specified when the bundle constructs a MongoDB\Client instance for both "mongo" and "mongodb" handler syntax.
Apply MongoDBFormatter to each "mongodb" handler by default
Remove redundant Definition::setPublic() calls for inline services
Revise error messages for mongo and mongodb handler configs
Throw if mongodb/mongodb package is not available when configuring handlers
Add mongodb extension for CI testing
Skip tests if mongodb/mongodb is not installed
Add CI job for testing MongoDB handlers
trigger_deprecation('symfony/monolog-bundle', '3.11', 'The "mongo" handler type is deprecated in MonologBundle since version 3.11.0, use the "mongodb" type instead.');
269
+
270
+
if (!class_exists('MongoDB\Client')) {
271
+
thrownew \RuntimeException('The "mongo" handler requires the mongodb/mongodb package to be installed.');
trigger_deprecation('symfony/monolog-bundle', '3.8', 'The "elasticsearch" handler type is deprecated in MonologBundle since version 3.8.0, use the "elastica" type instead, or switch to the official Elastic client using the "elastic_search" type.');
297
340
// no break
@@ -1021,6 +1064,7 @@ private function getHandlerClassByType($handlerType)
0 commit comments