You are here

public function GuardFactory::__construct in State Machine 8

Constructs a new GuardFactory object.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

string[] $guard_service_ids: The guard service IDs, grouped by workflow group ID.

File

src/Guard/GuardFactory.php, line 34

Class

GuardFactory
Default implementation of the guard factory.

Namespace

Drupal\state_machine\Guard

Code

public function __construct(ContainerInterface $container, array $guard_service_ids) {
  $this->container = $container;
  $this->guardServiceIds = $guard_service_ids;
}