関数
RedirectRouteGuards::__construct( Aivec\Welcart\SettlementModules\AmazonPay\AmazonPay $module, Aivec\Welcart\SettlementModules\AmazonPay\Routing\RestRouteGuards $restRouteGuards )
Instantiates redirect route guards
Instantiates redirect route guards
(AmazonPay) (必須)
(RestRouteGuards) (必須)
ファイル: src/Routing/RedirectRouteGuards.php
public function __construct(AmazonPay $module, RestRouteGuards $restRouteGuards) { $this->module = $module; $this->restRouteGuards = $restRouteGuards; }
使用されるアイテム | 説明 |
---|---|
src/Routing/RedirectRoutes.php: RedirectRoutes::declareRoutes() | Declares request key routes |
src/AmazonPay.php: AmazonPay::initCheckoutHooks() | This function loads all hooks associated with the checkout process. Note that because of when Welcart’s main class and subsequent checkout hooks are loaded, our implementation of them MUST be initialized in this hook. Wordpresses “init” hook, for example, if used, will result in these hooks not being called at all. |