| @@ 46-63 (lines=18) @@ | ||
| 43 | /** |
|
| 44 | * @return \yii\web\Response |
|
| 45 | */ |
|
| 46 | public function actionCreate() |
|
| 47 | { |
|
| 48 | BackgroundTasks::addTask( |
|
| 49 | [ |
|
| 50 | 'name' => 'google_merchants_generate', |
|
| 51 | 'description' => 'Creating YML file', |
|
| 52 | 'action' => 'shop/google-merchants/generate', |
|
| 53 | 'params' => '', |
|
| 54 | 'init_event' => 'shop/google_merchants', |
|
| 55 | ], |
|
| 56 | [ |
|
| 57 | 'create_notification' => true, |
|
| 58 | ] |
|
| 59 | ); |
|
| 60 | ||
| 61 | Yii::$app->session->setFlash('success', 'Task has been created.'); |
|
| 62 | return $this->redirect(['settings']); |
|
| 63 | } |
|
| 64 | ||
| 65 | ||
| 66 | } |
|
| @@ 74-91 (lines=18) @@ | ||
| 71 | /** |
|
| 72 | * @return \yii\web\Response |
|
| 73 | */ |
|
| 74 | public function actionCreate() |
|
| 75 | { |
|
| 76 | BackgroundTasks::addTask( |
|
| 77 | [ |
|
| 78 | 'name' => 'yml_generate', |
|
| 79 | 'description' => 'Creating YML file', |
|
| 80 | 'action' => 'shop/yml/generate', |
|
| 81 | 'params' => '', |
|
| 82 | 'init_event' => 'shop/yml', |
|
| 83 | ], |
|
| 84 | [ |
|
| 85 | 'create_notification' => true, |
|
| 86 | ] |
|
| 87 | ); |
|
| 88 | ||
| 89 | Yii::$app->session->setFlash('success', 'Task has been created.'); |
|
| 90 | return $this->redirect(['settings']); |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * @return Response |
|