Skip to content

Commit

Permalink
[PIPRES-468] added ps version checking
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijusCoding committed Nov 26, 2024
1 parent 7e6a927 commit a1345fc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/Infrastructure/Exception/MollieDatabaseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
use Mollie\Exception\Code\ExceptionCode;
use Mollie\Exception\MollieException;

if (!defined('_PS_VERSION_')) {
exit;
}

class MollieDatabaseException extends MollieException
{
public static function failedToFindRecord(string $className, array $keyValues): self
Expand Down
4 changes: 4 additions & 0 deletions src/Logger/LogFormatterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Logger;

if (!defined('_PS_VERSION_')) {
exit;
}

interface LogFormatterInterface
{
/**
Expand Down
4 changes: 4 additions & 0 deletions src/Logger/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
use Mollie\Service\EntityManager\ObjectModelUnitOfWork;
use Mollie\Utility\NumberIdempotencyProvider;

if (!defined('_PS_VERSION_')) {
exit;
}

class Logger implements LoggerInterface
{
public const FILE_NAME = 'Logger';
Expand Down
4 changes: 4 additions & 0 deletions src/Logger/LoggerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Logger;

if (!defined('_PS_VERSION_')) {
exit;
}

interface LoggerInterface extends \Psr\Log\LoggerInterface
{
}
4 changes: 4 additions & 0 deletions src/Utility/VersionUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

namespace Mollie\Utility;

if (!defined('_PS_VERSION_')) {
exit;
}

class VersionUtility
{
public static function isPsVersionLessThan($version): int
Expand Down

0 comments on commit a1345fc

Please sign in to comment.