Open phebix opened 7 months ago
Hello, in older versions i use autoinject argument in nonfig.neon file e.g.
autoinject
scheduler: jobs: MyJob: {class: App\Jobs\MyJOb, inject: true}
In new version this option is no longer available. In SchedulerExtension.php is only simple factory call without the possibility to set arguments.
SchedulerExtension.php
$jobDefinition = $builder->addDefinition($this->prefix('job.' . $jobName)) ->setFactory($jobConfig) ->setAutowired(false);
would will be possible to enable this option, or switch setAutowired to true
setAutowired
true
Hello, in older versions i use
autoinject
argument in nonfig.neon file e.g.In new version this option is no longer available.
In
SchedulerExtension.php
is only simple factory call without the possibility to set arguments.would will be possible to enable this option, or switch
setAutowired
totrue