Skip to content

Commit

Permalink
RATESWSX-300: refactoring: move feature-flag-service to core-namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Mar 22, 2024
1 parent 34ff4f1 commit 5073d09
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 21 deletions.
18 changes: 0 additions & 18 deletions src/Components/FeatureFlags/DependencyInjection/services.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use RatePAY\Model\Request\SubModel\Content;
use RatePAY\Model\Request\SubModel\Head;
use RatePAY\RequestBuilder;
use Ratepay\RpayPayments\Components\FeatureFlags\Util\FeatureFlagService;
use Ratepay\RpayPayments\Components\ProfileConfig\Model\ProfileConfigEntity;
use Ratepay\RpayPayments\Components\ProfileConfig\Service\Search\ProfileByOrderEntity;
use Ratepay\RpayPayments\Components\ProfileConfig\Service\Search\ProfileSearchService;
Expand All @@ -25,6 +24,7 @@
use Ratepay\RpayPayments\Components\RatepayApi\Factory\HeadFactory;
use Ratepay\RpayPayments\Components\RatepayApi\Factory\PaymentFactory;
use Ratepay\RpayPayments\Components\RatepayApi\Factory\ShoppingBasketFactory;
use Ratepay\RpayPayments\Core\FeatureFlagService;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/

namespace Ratepay\RpayPayments\Components\FeatureFlags\Util;
namespace Ratepay\RpayPayments\Core;

class FeatureFlagService
{
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<argument id="Shopware\Core\System\SystemConfig\SystemConfigService" type="service"/>
<argument>%ratepay.shopware_payment.plugin_version%</argument>
</service>

<!-- needs to be public, so we can get it in boot in bundle-file -->
<service id="Ratepay\RpayPayments\Components\FeatureFlags\Util\FeatureFlagService" autowire="true" public="true"/>
</services>

</container>
2 changes: 1 addition & 1 deletion src/RpayPayments.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Ratepay\RpayPayments\Bootstrap\AbstractBootstrap;
use Ratepay\RpayPayments\Bootstrap\Database;
use Ratepay\RpayPayments\Bootstrap\PaymentMethods;
use Ratepay\RpayPayments\Components\FeatureFlags\Util\FeatureFlagService;
use Ratepay\RpayPayments\Core\FeatureFlagService;
use Shopware\Core\Framework\Context;
use Shopware\Core\Framework\DataAbstractionLayer\EntityRepository;
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
Expand Down

0 comments on commit 5073d09

Please sign in to comment.