there is a queue
class DownloadJob extends BaseObject implements \yii\queue\JobInterface
{
public $service;
public function execute($queue)
{
$this->service->saveData( $this->entity );
}
}
as you can see I wanted to embed the means DI instantiated and configured $service configuring it through the configuration in the following way:
'container' => [
'definitions' => [
'DownloadJob' =>
['service' => ['class'=>'Service']]
],
],
how to properly embed through a property?