You are here

public function ForumManager::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/forum/src/ForumManager.php \Drupal\forum\ForumManager::__construct()

Constructs the forum manager service.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Database\Connection $connection: The current database connection.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager service.

\Drupal\comment\CommentManagerInterface $comment_manager: The comment manager service.

File

core/modules/forum/src/ForumManager.php, line 127
Contains \Drupal\forum\ForumManager.

Class

ForumManager
Provides forum manager service.

Namespace

Drupal\forum

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, Connection $connection, TranslationInterface $string_translation, CommentManagerInterface $comment_manager) {
  $this->configFactory = $config_factory;
  $this->entityManager = $entity_manager;
  $this->connection = $connection;
  $this->stringTranslation = $string_translation;
  $this->commentManager = $comment_manager;
}