class StateMachineServiceProvider in State Machine 8
Registers the guard compiler pass.
Hierarchy
- class \Drupal\state_machine\StateMachineServiceProvider implements ServiceProviderInterface
Expanded class hierarchy of StateMachineServiceProvider
File
- src/
StateMachineServiceProvider.php, line 12
Namespace
Drupal\state_machineView source
class StateMachineServiceProvider implements ServiceProviderInterface {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
$container
->addCompilerPass(new GuardsPass());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StateMachineServiceProvider:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |