You are here

public static function BusinessRulesListener::setContainer in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/BusinessRulesListener.php \Drupal\business_rules\EventSubscriber\BusinessRulesListener::setContainer()

Sets the container.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface|null $container: A ContainerInterface instance or null.

File

src/EventSubscriber/BusinessRulesListener.php, line 109

Class

BusinessRulesListener
Class BusinessRulesListener.

Namespace

Drupal\business_rules\EventSubscriber

Code

public static function setContainer(ContainerInterface $container = NULL) {
  self::$container = $container;
  \Drupal::setContainer($container);
}