Skip to content

Commit

Permalink
OP-366 - Apply ECS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonKostrubiec committed Jul 29, 2024
1 parent c9223ef commit e576d40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Controller/Shop/InitializePaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(
BlikModelProviderInterface $blikModelProvider,
TransactionPaymentDataResolverInterface $transactionPaymentDataResolver,
TranslatorInterface $translator,
LoggerInterface $logger
LoggerInterface $logger,
) {
$this->orderResolver = $orderResolver;
$this->paymentResolver = $paymentResolver;
Expand Down Expand Up @@ -123,6 +123,7 @@ private function getPaymentFromOrder(OrderInterface $order): PaymentInterface
$payment = $this->paymentResolver->resolve($order);
} catch (\InvalidArgumentException $e) {
$this->logger->error($e->getMessage());

throw new ImojeNotConfiguredException('Payment method not found');
}

Expand Down
3 changes: 2 additions & 1 deletion src/DependencyInjection/BitBagSyliusImojeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@

namespace BitBag\SyliusImojePlugin\DependencyInjection;

use Sylius\Bundle\CoreBundle\DependencyInjection\PrependDoctrineMigrationsTrait;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Sylius\Bundle\CoreBundle\DependencyInjection\PrependDoctrineMigrationsTrait;

final class BitBagSyliusImojeExtension extends Extension implements PrependExtensionInterface
{
use PrependDoctrineMigrationsTrait;

public function load(array $configs, ContainerBuilder $container): void
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
Expand Down

0 comments on commit e576d40

Please sign in to comment.