Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable autoinject is not available in v8.0 #29

Open
phebix opened this issue Mar 25, 2024 · 0 comments
Open

Enable autoinject is not available in v8.0 #29

phebix opened this issue Mar 25, 2024 · 0 comments

Comments

@phebix
Copy link

phebix commented Mar 25, 2024

Hello, in older versions i use autoinject argument in nonfig.neon file e.g.

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.

$jobDefinition = $builder->addDefinition($this->prefix('job.' . $jobName))
					->setFactory($jobConfig)
					->setAutowired(false);

would will be possible to enable this option, or switch setAutowired to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant