You are here

public function SocialSimpleGenerator::__construct in Social simple 2.0.x

Same name and namespace in other branches
  1. 8 src/SocialSimpleGenerator.php \Drupal\social_simple\SocialSimpleGenerator::__construct()

Constructs a new SocialSimpleGenerator object.

Parameters

\Drupal\Core\Controller\TitleResolver $title_resolver: The title resolver service.

\Drupal\Core\Routing\CurrentRouteMatch $current_route_match: The current route match.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory.

\Drupal\Core\Render\Renderer $renderer_service: The renderer service.

\Drupal\social_simple\SocialSimpleManagerInterface $social_simple_manager: The social simple manager.

File

src/SocialSimpleGenerator.php, line 90

Class

SocialSimpleGenerator
Class SocialSimpleGenerator.

Namespace

Drupal\social_simple

Code

public function __construct(TitleResolver $title_resolver, CurrentRouteMatch $current_route_match, RequestStack $request_stack, ConfigFactory $config_factory, Renderer $renderer_service, SocialSimpleManagerInterface $social_simple_manager) {
  $this->titleResolver = $title_resolver;
  $this->currentRouteMatch = $current_route_match;
  $this->requestStack = $request_stack;
  $this->configFactory = $config_factory;
  $this->renderer = $renderer_service;
  $this->socialSimpleManager = $social_simple_manager;
}