You are here

public function DependencyCalculator::__construct in Dependency Calculation 8

The DependencyCalculator constructor.

Parameters

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.

\Drupal\Core\Logger\LoggerChannelInterface $logger: The depcalc logger channel.

File

src/DependencyCalculator.php, line 41

Class

DependencyCalculator
Calculates all the dependencies of a given entity.

Namespace

Drupal\depcalc

Code

public function __construct(EventDispatcherInterface $dispatcher, LoggerChannelInterface $logger) {
  $this->dispatcher = $dispatcher;
  $this->logger = $logger;
}