Jacek Kowalski
2026-02-16 68733e1d15a3b3cca8f1dc4e7c78dba1cd756e81
src/wFirmaApiFactory.php
@@ -3,7 +3,7 @@
namespace SIPL\UCRM\wFirma;
class wFirmaApiFactory {
   protected $ucrmHelper;
   protected UcrmHelper $ucrmHelper;
   function __construct(UcrmHelper $ucrmHelper) {
      $this->ucrmHelper = $ucrmHelper;
@@ -11,7 +11,7 @@
   function create(): \Webit\WFirmaSDK\Entity\ModuleApiFactory {
      $config = $this->ucrmHelper->getConfig();
      $wFirmaAuth = new \Webit\WFirmaSDK\Auth\BasicAuth($config['wfirma_username'], $config['wfirma_password']);
      $wFirmaAuth = new \Webit\WFirmaSDK\Auth\ApiKeysAuth($config['wfirma_access_key'], $config['wfirma_secret_key'], $config['wfirma_app_key']);
      $wFirmaEntityApiFactory = new \Webit\WFirmaSDK\Entity\EntityApiFactory();
      $wFirmaEntityApi = $wFirmaEntityApiFactory->create($wFirmaAuth);