Inject logger service into SmsGatewayPluginBase instead of accessing global Drupal object.
May as well remove \Drupal\sms\Plugin\SmsGatewayPluginBase::logger(), use protected reference to service?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | gateway-plugin-logger-inject-2792891-3-af402ec.patch | 3.5 KB | dpi |
Comments
Comment #2
dpiActually apart from the logger gateway we are not using this.
Perhaps it makes sense to log failure of result and reports in the provider service?
Comment #3
dpiAlso OP is unlikely to happen now since it changes the signature of dependent constructors, making it a backwards incompatible change.
Comment #4
almaudoh commentedWell, we're still making changes to schema, etc. So we might as well clean this up as well.
On the other hand, do we really need the logger here?
Comment #5
dpiYeh i dont think so, we can inject the logger into the log gateway, remove it from base.
Comment #6
dpihttps://github.com/dpi/smsframework/pull/56
Comment #8
dpi