関数
Factory::getInstance( Aivec\Welcart\SettlementModules\AmazonPay\AmazonPay $module )
Returns ConfirmPageLogin
instance for the given theme
パラメータ パラメータ
- $module
(AmazonPay) (必須)
ファイル: src/Views/ConfirmPageLogin/Factory.php
public function getInstance(AmazonPay $module) { $instance = null; $theme = AmazonPay::getThemeConfig()['name']; switch ($theme) { case 'beldad': $instance = new Themes\Beldad($module); break; case 'voll': $instance = new Themes\Voll($module); break; default: $instance = new ConfirmPageLogin($module); break; } return $instance; }