Skip to content

Commit

Permalink
Misc logger and notification changes (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-groncki authored Mar 10, 2022
1 parent be0f7b8 commit bb80a93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/Client/SignatureValidatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

namespace BitBag\SyliusAdyenPlugin\Client;

use Adyen\Exception\HMACKeyValidationException;

interface SignatureValidatorInterface
{
/**
* @throws HMACKeyValidationException
*/
public function isValid(array $params): bool;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@

final class NotificationItemNormalizer implements DenormalizerAwareInterface, DenormalizerInterface, NormalizerAwareInterface, ContextAwareNormalizerInterface
{
private const DENORMALIZATION_PROCESSED_FLAG = '_adyen_notification_normalization_processed';

private const NORMALIZATION_PROCESSED_FLAG = '_adyen_notification_denormalization_processed';
private const DENORMALIZATION_PROCESSED_FLAG = '_adyen_notification_denormalization_processed';

use DenormalizerAwareTrait;
use NormalizerAwareTrait;
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/views/Admin/Logger/_level.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% if data %}
{% set notice = constant('Monolog\\Logger::NOTICE') %}
{% set info = constant('Monolog\\Logger::INFO') %}
{% set error = constant('Monolog\\Logger::ERROR') %}
{% set debug = constant('Monolog\\Logger::DEBUG') %}

{% if data == notice %}
{% if data == info %}
<div class="ui info horizontal label">{{'bitbag_sylius_adyen_plugin.ui.logging.info'|trans}}</div>
{% elseif data == error %}
<div class="ui red horizontal label">{{'bitbag_sylius_adyen_plugin.ui.logging.error'|trans}}</div>
Expand Down

0 comments on commit bb80a93

Please sign in to comment.