Exemplo n.º 1
0
 public function postActivation(ConnectionInterface $con = null)
 {
     /**
      * Create a fake customer for shopping flux orders
      */
     ShoppingFluxConfigQuery::createShoppingFluxCustomer();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->logger = Tlog::getNewInstance();
     $this->logger->setDestinations(static::LOG_CLASS);
     $this->logger->setConfig(self::LOG_CLASS, 0, THELIA_ROOT . "log" . DS . "log-shopping-flux.txt");
     /**
      * Create a fake user ShoppingFlux if it doesn't exist
      */
     $this->shoppingFluxCustomer = ShoppingFluxConfigQuery::createShoppingFluxCustomer();
     $this->shoppingFluxPaymentModule = (new ShoppingFlux())->getModuleModel();
     $this->shoppingFluxPaymentModuleId = $this->shoppingFluxPaymentModule->getId();
 }