src/EventListener/XCartBootListener.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. declare(strict_types=1);
  7. namespace XCart\EventListener;
  8. use XCart\Domain\StaticConfigDomain;
  9. class XCartBootListener
  10. {
  11.     private StaticConfigDomain $staticConfigDomain;
  12.     public function __construct(
  13.         StaticConfigDomain $staticConfigDomain
  14.     ) {
  15.         $this->staticConfigDomain $staticConfigDomain;
  16.     }
  17.     public function onBoot(): void
  18.     {
  19.         $config $this->staticConfigDomain->getConfig();
  20.         $this->staticConfigDomain->setConfig($config);
  21.     }
  22. }