1 | <?php |
||
18 | class ImportScheduleExecutor extends AbstractExecutor implements ObjectPayloadInterface |
||
19 | { |
||
20 | const NAME = 'import.schedule'; |
||
21 | |||
22 | /** |
||
23 | * @var ImportScheduler |
||
24 | */ |
||
25 | protected $scheduler; |
||
26 | |||
27 | /** |
||
28 | * @var ImportFactory |
||
29 | */ |
||
30 | protected $importFactory; |
||
31 | |||
32 | /** |
||
33 | * @var LoggerInterface |
||
34 | */ |
||
35 | protected $logger; |
||
36 | |||
37 | /** |
||
38 | * @param ImportScheduler $scheduler |
||
39 | * @param ImportFactory $importFactory |
||
40 | * @param LoggerInterface $logger |
||
41 | */ |
||
42 | public function __construct(ImportScheduler $scheduler, ImportFactory $importFactory, LoggerInterface $logger) |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getName() |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | public function getObjectPayload($object) |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | public function supportsObject($object) |
||
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | public function configurePayload(OptionsResolver $resolver) |
||
93 | |||
94 | /** |
||
95 | * @inheritdoc |
||
96 | */ |
||
97 | public function execute(array $payload) |
||
122 | } |
||
123 |