You are here

public function FacebookAuthManager::__construct in Social Auth Facebook 8

Same name and namespace in other branches
  1. 8.2 src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::__construct()
  2. 3.x src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::__construct()

Constructor.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Used for logging errors.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Used for dispatching events to other modules.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Used for accessing Drupal user picture preferences.

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: Used for generating absoulute URLs.

\Drupal\social_auth_facebook\FacebookAuthPersistentDataHandler $persistent_data_handler: Used for reading data from and writing data to session.

File

src/FacebookAuthManager.php, line 76

Class

FacebookAuthManager
Contains all Simple FB Connect logic that is related to Facebook interaction.

Namespace

Drupal\social_auth_facebook

Code

public function __construct(LoggerChannelFactoryInterface $logger_factory, EventDispatcherInterface $event_dispatcher, EntityFieldManagerInterface $entity_field_manager, UrlGeneratorInterface $url_generator, FacebookAuthPersistentDataHandler $persistent_data_handler) {
  $this->loggerFactory = $logger_factory;
  $this->eventDispatcher = $event_dispatcher;
  $this->entityFieldManager = $entity_field_manager;
  $this->urlGenerator = $url_generator;
  $this->persistentDataHandler = $persistent_data_handler;
}