StateMachineServiceProvider.php in State Machine 8
Namespace
Drupal\state_machineFile
src/StateMachineServiceProvider.phpView 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
Name | Description |
---|---|
StateMachineServiceProvider | Registers the guard compiler pass. |