ActionScheduler.php
3 weeks ago
AutomationController.php
2 years ago
FilterHandler.php
1 month ago
RootStep.php
2 years ago
StepHandler.php
2 months ago
StepRunController.php
1 year ago
StepRunControllerFactory.php
1 year ago
StepRunLogger.php
2 months ago
StepRunLoggerFactory.php
2 years ago
StepScheduler.php
1 year ago
SubjectLoader.php
3 years ago
SubjectTransformerHandler.php
1 year ago
TriggerHandler.php
2 years ago
index.php
3 years ago
StepRunLoggerFactory.php
30 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\Automation\Engine\Control; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Automation\Engine\Hooks; |
| 9 | use MailPoet\Automation\Engine\Storage\AutomationRunLogStorage; |
| 10 | |
| 11 | class StepRunLoggerFactory { |
| 12 | /** @var AutomationRunLogStorage */ |
| 13 | private $automationRunLogStorage; |
| 14 | |
| 15 | /** @var Hooks */ |
| 16 | private $hooks; |
| 17 | |
| 18 | public function __construct( |
| 19 | AutomationRunLogStorage $automationRunLogStorage, |
| 20 | Hooks $hooks |
| 21 | ) { |
| 22 | $this->automationRunLogStorage = $automationRunLogStorage; |
| 23 | $this->hooks = $hooks; |
| 24 | } |
| 25 | |
| 26 | public function createLogger(int $runId, string $stepId, string $stepType, int $runNumber): StepRunLogger { |
| 27 | return new StepRunLogger($this->automationRunLogStorage, $this->hooks, $runId, $stepId, $stepType, $runNumber); |
| 28 | } |
| 29 | } |
| 30 |