You are here

public function SharethisManager::__construct in ShareThis 8.2

Constructs an SharethisManager object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Configuration Factory.

\Drupal\Core\Controller\TitleResolverInterface $title_resolver: The Title Resolver.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

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

File

src/SharethisManager.php, line 66

Class

SharethisManager
Defines an SharethisManager service.

Namespace

Drupal\sharethis

Code

public function __construct(ConfigFactoryInterface $config_factory, TitleResolverInterface $title_resolver, RouteMatchInterface $route_match, RequestStack $request_stack) {
  $this->configFactory = $config_factory;
  $this->titleResolver = $title_resolver;
  $this->routeMatch = $route_match;
  $this->requestStack = $request_stack;
  $this->sharethisJS = FALSE;
}