You are here

public function ContentHubCommonActions::__construct in Acquia Content Hub 8.2

ContentHubCommonActions constructor.

Parameters

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

\Drupal\acquia_contenthub\EntityCdfSerializer $serializer: The entity cdf serializer.

\Drupal\depcalc\DependencyCalculator $calculator: The dependency calculator.

\Drupal\acquia_contenthub\Client\ClientFactory $factory: The ContentHub client factory.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger channel factory.

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

File

src/ContentHubCommonActions.php, line 90

Class

ContentHubCommonActions
Common actions across the entirety of Content Hub.

Namespace

Drupal\acquia_contenthub

Code

public function __construct(EventDispatcherInterface $dispatcher, EntityCdfSerializer $serializer, DependencyCalculator $calculator, ClientFactory $factory, LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory) {
  $this->dispatcher = $dispatcher;
  $this->serializer = $serializer;
  $this->calculator = $calculator;
  $this->factory = $factory;
  $this->channel = $logger_factory
    ->get('acquia_contenthub');
  $this->config = $config_factory
    ->getEditable('acquia_contenthub.admin_settings');
}