| 1 | <?php |
||
| 15 | final class ActionRegistry implements ActionInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $actions; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var \Psr\Log\LoggerInterface |
||
| 24 | */ |
||
| 25 | private $logger; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | private $debug = false; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var \Netgen\InformationCollection\Core\Action\ConfigurationUtility |
||
| 34 | */ |
||
| 35 | private $utility; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * ActionAggregate constructor. |
||
| 39 | * |
||
| 40 | * @param array $actions |
||
| 41 | * @param \Netgen\InformationCollection\Core\Action\ConfigurationUtility $utility |
||
| 42 | * @param \Psr\Log\LoggerInterface $logger |
||
| 43 | */ |
||
| 44 | public function __construct(iterable $actions, ConfigurationUtility $utility, LoggerInterface $logger) |
||
| 50 | |||
| 51 | public function act(InformationCollected $event): void |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Sets debug variable based on kernel.debug param. |
||
| 77 | * |
||
| 78 | * @param bool $debug |
||
| 79 | */ |
||
| 80 | public function setDebug($debug) |
||
| 84 | } |
||
| 85 |