Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The class SalesforceLoggerSubscriber declares the property:
protected $configFactory;
However, in the constructor, it tries to assign the configuration factory to $config:
public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config) {
$this->logger = $logger;
$this->config = $config;
}
Steps to reproduce
Check the code.
Proposed resolution
Fix names.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork salesforce-3417891
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
tunicIt was much simpler, just rename $configFactory to just $config.
Comment #6
AaronBaumanfixed, thanks