Skip to content

Symfony 8 support and improvements - #6

Merged
nuryagdym merged 8 commits into
masterfrom
2026-06-minor-changes
Jun 22, 2026
Merged

nuryagdym merged 8 commits into
masterfrom
2026-06-minor-changes

Conversation

@nuryagdym

Copy link
Copy Markdown
Collaborator

Eklendi

  • Symfony 8 desteği eklendi (symfony/config, symfony/dependency-injection, symfony/http-kernel vb. bağımlılıklar ^8.0 sürümüyle genişletildi)
  • CI pipeline'a PHP 8.4 ve Symfony 8 test matrisi eklendi
  • Unit testler eklendi: AccountFactoryTest, AbstractGatewayDefinitionBuilderTest, EstV3PosDefinitionBuilderTest, GatewayFactoryTest, GatewayDefinitionFactoryTest

Düzeltildi

  • AbstractGatewayDefinitionBuilder'da require3DGateway() çağrısı, üst sınıfın gateway_endpoints alt çözücüsünü sessizce üzerine yazarak payment_api zorunluluğunu ve gateway_3d_host tanımını siliyordu. Mevcut alt çözücünün genişletilmesiyle bu hata giderildi.

Yeniden Düzenlendi

  • GatewayDefinitionFactory: Yapılandırmada desteklenmeyen bir gateway_class tanımlandığında artık açıklayıcı bir InvalidArgumentException fırlatılıyor
  • AbstractGatewayDefinitionBuilder: PHP eklentisi kontrolü basitleştirildi
  • KuveytPos için PHP ext-soap eklendi zorunluluğu kaldırıldı
  • AccountFactory: Hata mesajı daha açıklayıcı hale getirildi

**File:** `src/Gateway/Builder/AbstractGatewayDefinitionBuilder.php`

`configureOptions()` registers a `gateway_endpoints` sub-resolver requiring `payment_api` and defining `gateway_3d_host`. When a builder then calls `$this->require3DGateway($resolver)`, it calls `setDefault('gateway_endpoints', ...)` again, replacing the previous closure — dropping the `payment_api` requirement and `gateway_3d_host` definition entirely.

Fix: make `require3DGateway` extend the existing sub-resolver rather than replacing it, or fold the 3D gateway requirement into the parent with a boolean flag.
soap extension is needed since mews/pos v1.8
@nuryagdym nuryagdym changed the title 2026 06 minor changes Symfony 8 support and improvements Jun 22, 2026
@nuryagdym
nuryagdym merged commit a8a3949 into master Jun 22, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant