public function postActivation(ConnectionInterface $con = null) { /** * Create a fake customer for shopping flux orders */ ShoppingFluxConfigQuery::createShoppingFluxCustomer(); }
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(); }