Feature: bootstrap dependency injection for CronJobManager

This commit is contained in:
2022-12-12 21:15:58 +01:00
parent 1ebdcd1530
commit b789250b8d
3 changed files with 21 additions and 0 deletions

View File

@@ -106,3 +106,15 @@ services:
resource: '../Service/'
autowire: true
autoconfigure: true
Chill\MainBundle\Cron\:
resource: '../Cron'
autowire: true
autoconfigure: true
Chill\MainBundle\Cron\CronManager:
autoconfigure: true
autowire: true
lazy: true
arguments:
$jobs: !tagged_iterator chill_main.cron_job

View File

@@ -61,3 +61,9 @@ services:
autowire: true
tags:
- { name: console.command }
Chill\MainBundle\Command\ExecuteCronJobCommand:
autoconfigure: true
autowire: true
tags:
- {name: console.command }