1 | <?php |
||
25 | class IsActive extends AbstractHelper |
||
26 | { |
||
27 | /** |
||
28 | * @var Rollout |
||
29 | */ |
||
30 | private $rollout; |
||
31 | |||
32 | public function __construct(Rollout $rollout) |
||
36 | |||
37 | /** |
||
38 | * Checks if a feature is active for a given RolloutUserInterface |
||
39 | * |
||
40 | * @param string $feature |
||
41 | * @param RolloutUserInterface|null $user |
||
42 | * |
||
43 | * @return bool |
||
44 | */ |
||
45 | public function __invoke($feature, RolloutUserInterface $user = null) |
||
49 | } |