Exemple #1
0
 /**
  * @param HeadAPI      $api
  * @param ShopSettings $settings
  */
 public function __construct($api, $settings)
 {
     $this->api = $api;
     $this->defaultVat = $settings->getShopDefaultVat();
 }
Exemple #2
0
 /**
  * @return Mailer
  */
 protected function getMailer()
 {
     return $this->settings->getMailer();
 }
Exemple #3
0
 /**
  * @param ShopSettings $settings
  * @param Translator   $i18n
  */
 public function __construct($settings, $i18n)
 {
     $this->i18n = $i18n;
     $this->settings = $settings;
     $this->currency = $settings->getShopCurrencyCode();
 }
 /**
  * @param array $params
  *
  * @return string
  */
 protected function getCurrentAbsoluteUrl(array $params)
 {
     return $this->settings->getCurrentAbsoluteUrl($params);
 }
Exemple #5
0
 /**
  * @param Unit         $unit
  * @param ShopSettings $settings
  * @param Translator   $i18n
  *
  * @return CheckoutFrom
  */
 protected function createCheckoutForm($unit, $settings, $i18n)
 {
     $checkout = new CheckoutFrom('CHECKOUT_' . $unit->getId(), new SessionStore(), $i18n, $settings->getShippingCountries(), $settings->getPaymentMethodsAsOptions($i18n), $settings->getTosLink());
     return $checkout;
 }