Skip to content

Commit 7c5d01d

Browse files
committed
Fixed zhuravljov/yii2-queue API changes
1 parent 5390524 commit 7c5d01d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/console/AssetPackageController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function actionUpdate($type, $name)
4444
{
4545
try {
4646
$package = new AssetPackage($type, $name);
47-
Yii::createObject(PackageUpdateCommand::class, [$package])->run();
47+
Yii::createObject(PackageUpdateCommand::class, [$package])->execute(Yii::$app->queue);
4848
echo 'updated ' . $package->getHash() . ' ' . $package->getFullName() . "\n";
4949

5050
return true;

src/controllers/PackageController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function actionUpdate()
4545
throw new UpdateRateLimitException();
4646
}
4747

48-
Yii::createObject(PackageUpdateCommand::class, [$package])->run();
48+
Yii::createObject(PackageUpdateCommand::class, [$package])->execute(Yii::$app->queue);
4949
} catch (UpdateRateLimitException $exception) {
5050
Yii::$app->session->addFlash('rate-limited', true);
5151
} catch (PackageNotExistsException $e) {

0 commit comments

Comments
 (0)