You are here

public function HookEventDispatcherServiceProvider::register in Hook Event Dispatcher 8

Registers services to the container.

Parameters

ContainerBuilder $container: The ContainerBuilder to register services to.

Overrides ServiceProviderInterface::register

File

src/HookEventDispatcherServiceProvider.php, line 17

Class

HookEventDispatcherServiceProvider
Class PreprocessEventServiceProvider.

Namespace

Drupal\hook_event_dispatcher

Code

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