We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I have next problem, i've got an ApiKernel with minimum functionality (symfony microkernel), but i want a resque jobs runs over AppKernel.
In ContainerAwareJob class a createKernel method try to find one Symfony Kernel:
/** * @return KernelInterface */ protected function createKernel() { $finder = new Finder(); $finder->name('*Kernel.php')->depth(0)->in($this->args['kernel.root_dir']); $results = iterator_to_array($finder); $file = current($results); $class = $file->getBasename('.php'); require_once $file; return new $class( isset($this->args['kernel.environment']) ? $this->args['kernel.environment'] : 'dev', isset($this->args['kernel.debug']) ? $this->args['kernel.debug'] : true ); }
I want to force to use AppKernel but finds first ApiKernel. Do you think is good to add a bundle configuration property to allow change kernel file?
Or even better specify kernel for every job?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I have next problem, i've got an ApiKernel with minimum functionality (symfony microkernel), but i want a resque jobs runs over AppKernel.
In ContainerAwareJob class a createKernel method try to find one Symfony Kernel:
I want to force to use AppKernel but finds first ApiKernel.
Do you think is good to add a bundle configuration property to allow change kernel file?
Or even better specify kernel for every job?
The text was updated successfully, but these errors were encountered: