| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 1 | public function process(ContainerBuilder $container) |
|
| 25 | { |
||
| 26 | 1 | $allCrons = []; |
|
| 27 | |||
| 28 | 1 | $taggedServices = $container->findTaggedServiceIds(self::TAG); |
|
| 29 | 1 | foreach (array_keys($taggedServices) as $serviceId) { |
|
| 30 | /** @var CronInterface $cron */ |
||
| 31 | 1 | $definition = $container->getDefinition($serviceId); |
|
| 32 | 1 | $cron = $definition->getClass(); |
|
| 33 | 1 | $allCrons = array_merge($allCrons, $cron::getCrons()); |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | $this->dumpVariableToCache(self::CACHE_FILE, $allCrons); |
|
| 37 | 1 | } |
|
| 38 | } |
||
| 39 |