You are here

HookEventDispatcherServiceProvider.php in Hook Event Dispatcher 8

File

src/HookEventDispatcherServiceProvider.php
View source
<?php

namespace Drupal\hook_event_dispatcher;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderInterface;
use Drupal\hook_event_dispatcher\Service\PreprocessEventPass;

/**
 * Class PreprocessEventServiceProvider.
 */
final class HookEventDispatcherServiceProvider implements ServiceProviderInterface {

  /**
   * {@inheritdoc}
   */
  public function register(ContainerBuilder $container) {
    $container
      ->addCompilerPass(new PreprocessEventPass());
  }

}

Classes

Namesort descending Description
HookEventDispatcherServiceProvider Class PreprocessEventServiceProvider.