Skip to content
Snippets Groups Projects
Commit f8b68b21 authored by Aaron Bauman's avatar Aaron Bauman Committed by Aaron Bauman
Browse files

Issue #3172498 by bletch, AaronBauman: Fatal error non-existent service "user.private_tempstore"

parent 1b512372
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ class SalesforceOAuthController extends ControllerBase { ...@@ -55,7 +55,7 @@ class SalesforceOAuthController extends ControllerBase {
return new static( return new static(
$container->get('request_stack'), $container->get('request_stack'),
$container->get('messenger'), $container->get('messenger'),
$container->get('user.private_tempstore') $container->get('tempstore.private')
); );
} }
......
...@@ -74,7 +74,7 @@ class SalesforceOAuthPlugin extends SalesforceAuthProviderPluginBase { ...@@ -74,7 +74,7 @@ class SalesforceOAuthPlugin extends SalesforceAuthProviderPluginBase {
// Write the config id to private temp store, so that we can use the same // Write the config id to private temp store, so that we can use the same
// callback URL for all OAuth applications in Salesforce. // callback URL for all OAuth applications in Salesforce.
/** @var \Drupal\Core\TempStore\PrivateTempStore $tempstore */ /** @var \Drupal\Core\TempStore\PrivateTempStore $tempstore */
$tempstore = \Drupal::service('user.private_tempstore')->get('salesforce_oauth'); $tempstore = \Drupal::service('tempstore.private')->get('salesforce_oauth');
$tempstore->set('config_id', $form_state->getValue('id')); $tempstore->set('config_id', $form_state->getValue('id'));
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment