Runs tasks syncronously in the same process if handle
property is turned on. Could be used when developing and debugging
application.
Configuration example:
return [
'components' => [
'queue' => [
'class' => \yii\queue\sync\Queue::class,
'handle' => false, // if tasks should be executed immediately
],
],
];