ContainerRule extends Rule uses LoggerTrait, ToStringTrait
AbstractYes
An abstract rule to defines rules with an internal DI container reference.
Table of Contents
Properties
- $container : ContainerInterface
- The DI container reference.
Methods
- __construct() : mixed
- Creates a new ContainerRule instance.
Properties
$container
The DI container reference.
protected
ContainerInterface
$container
Methods
__construct()
Creates a new ContainerRule instance.
public
__construct(ContainerInterface $container[, array<string|int, mixed> $init = [] ]) : mixed
Parameters
- $container : ContainerInterface
-
The DI container reference.
- $init : array<string|int, mixed> = []
-
The options to passed-in the rule.