Skip to content

Commit

Permalink
Fix services configuration after Blik-related services refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed Nov 19, 2024
1 parent 3612004 commit 9bf62b2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/doctrine/blik_payment/BlikAlias.orm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"
>
<mapped-superclass name="CommerceWeavers\SyliusTpayPlugin\BlikPaymentEntity\BlikAlias" table="cw_sylius_tpay_blik_alias">
<mapped-superclass name="CommerceWeavers\SyliusTpayPlugin\BlikPayment\Entity\BlikAlias" table="cw_sylius_tpay_blik_alias">
<id name="id" column="id" type="integer">
<generator />
</id>
Expand Down
6 changes: 4 additions & 2 deletions config/services/blik_payment/payum.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
use CommerceWeavers\SyliusTpayPlugin\Payum\Factory\TpayGatewayFactory;

return function(ContainerConfigurator $container): void {
$container->import('./payum/**/*.php');

$services = $container->services();

$services->defaults()
->public()
;

$services->set('commerce_weavers_sylius_tpay.blik_payment.payum.action.create_blik_level_zero_transaction', CreateBlikLevelZeroTransactionAction::class)
->args([
service('commerce_weavers_sylius_tpay.tpay.factory.create_blik_level_zero_payment_payload'),
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/DataFixtures/shop/blik_alias.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CommerceWeavers\SyliusTpayPlugin\Entity\BlikAlias:
CommerceWeavers\SyliusTpayPlugin\BlikPayment\Entity\BlikAlias:
blik_alias_john_doe:
value: 'f6fcb158-4ceb-432f-8265-923cd45727b4'
customer: '@customer_john_doe'
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/DataFixtures/shop/blik_ambiguous_alias.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CommerceWeavers\SyliusTpayPlugin\Entity\BlikAlias:
CommerceWeavers\SyliusTpayPlugin\BlikPayment\Entity\BlikAlias:
blik_alias_john_doe:
__factory: {
'Tests\CommerceWeavers\SyliusTpayPlugin\Api\DataFixtures\Factory\BlikAliasFactory::createRegistered': [
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/DataFixtures/shop/blik_expired_alias.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CommerceWeavers\SyliusTpayPlugin\Entity\BlikAlias:
CommerceWeavers\SyliusTpayPlugin\BlikPayment\Entity\BlikAlias:
blik_alias_john_doe:
__factory: {
'Tests\CommerceWeavers\SyliusTpayPlugin\Api\DataFixtures\Factory\BlikAliasFactory::createRegistered': [
Expand Down
2 changes: 1 addition & 1 deletion tests/Api/DataFixtures/shop/blik_not_registered_alias.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CommerceWeavers\SyliusTpayPlugin\Entity\BlikAlias:
CommerceWeavers\SyliusTpayPlugin\BlikPayment\Entity\BlikAlias:
blik_alias_john_doe:
__factory: {
'Tests\CommerceWeavers\SyliusTpayPlugin\Api\DataFixtures\Factory\BlikAliasFactory::create': [
Expand Down

0 comments on commit 9bf62b2

Please sign in to comment.