You are here

StateMachineServiceProvider.php in State Machine 8

File

src/StateMachineServiceProvider.php
View source
<?php

namespace Drupal\state_machine;

use Drupal\Core\DependencyInjection\ServiceProviderInterface;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\state_machine\DependencyInjection\Compiler\GuardsPass;

/**
 * Registers the guard compiler pass.
 */
class StateMachineServiceProvider implements ServiceProviderInterface {

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

}

Classes

Namesort descending Description
StateMachineServiceProvider Registers the guard compiler pass.