-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
146 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,34 @@ | ||
<?php | ||
|
||
use Adyen\Core\BusinessLogic\AdminAPI\AdminAPI; | ||
use Adyen\Core\Infrastructure\ServiceRegister; | ||
use Adyen\Core\Infrastructure\TaskExecution\Interfaces\TaskRunnerWakeup; | ||
use AdyenPayment\Controllers\Common\AjaxResponseSetter; | ||
|
||
/** | ||
* Class Shopware_Controllers_Backend_AdyenState | ||
*/ | ||
class Shopware_Controllers_Backend_AdyenState extends Enlight_Controller_Action | ||
{ | ||
use AjaxResponseSetter; | ||
use AjaxResponseSetter; | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function indexAction(): void | ||
{ | ||
$storeId = $this->Request()->get('storeId'); | ||
$result = AdminAPI::get()->integration($storeId)->getState(); | ||
/** | ||
* @return void | ||
*/ | ||
public function indexAction(): void | ||
{ | ||
$storeId = $this->Request()->get('storeId'); | ||
$result = AdminAPI::get()->integration($storeId)->getState(); | ||
$this->getTaskRunnerWakeUp()->wakeup(); | ||
|
||
$this->returnAPIResponse($result); | ||
} | ||
$this->returnAPIResponse($result); | ||
} | ||
|
||
/** | ||
* @return TaskRunnerWakeup | ||
*/ | ||
private function getTaskRunnerWakeUp(): TaskRunnerWakeup | ||
{ | ||
return ServiceRegister::getService(TaskRunnerWakeup::CLASS_NAME); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.