I’m using yii2-queue
in the execute() function i’m calling a component which use a third party library that i installed using composer. The component is working in my app but not in the queue job, the class is not found.
Any suggestion ?
public function execute($queue)
{
$result = Yii::$app->myComponentr->myFunction();
}
result:
yii\queue\Queue
[49] app\jobs\MyJob (attempt: 1, PID: 558) is finished with error: Error: Class 'Composer\MyClass\Myclass'
not found in /app/application/conponents/MyComponent.php:53