-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* NTR: set routing to xml * NTR: update routes * NTR: delete 6.5 specific controller * NTR: cleanup * NTR: fallback einbauen * NTR: fix routing for 6.5 * NTR: revert fixtures * NTR: fix routes scopes * NTR: fix routescope * NTR: phpstan fix * NTR: fix some tests for 6.6 * NTR: fix twig and exceptions * NTR: fix stan * NTR: fix smart contact form * NTR: fix phpstan errors * NTR: fix smart contact form * NTR: revert cart service * NTR: Csfix * NTR: add 6.6 to pipline * NTR: fix cart service * NTR: csfixer * NTR: fix add product * NTR: fix controller * NTR: admin updates * NTR: Update linter * NTR: fix refund manager * NTR: delete route annotations * NTR: add 6.6 to pipeline * NTR: fix subscription * NTR: csfix * NTR: fix mgration for sw 6.4 * NTR: update new sw version in pipeline checks * NTR: test apple pay buttons * NTR: bumb sw version * NTR: update php version * NTR: fix preview * NTR: eslint fix * NTR: eslint * NTR: eslint --------- Co-authored-by: Vitalij Mik <[email protected]>
- Loading branch information
1 parent
4b1986b
commit 675d137
Showing
178 changed files
with
1,810 additions
and
1,784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
polyfill/Shopware/Core/Checkout/Payment/Exception/PaymentProcessException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Shopware\Core\Checkout\Payment\Exception; | ||
if (class_exists(__NAMESPACE__ . '/PaymentProcessException')) { | ||
return; | ||
} | ||
use Shopware\Core\Framework\Log\Package; | ||
use Shopware\Core\Framework\ShopwareHttpException; | ||
use Symfony\Component\HttpFoundation\Response; | ||
|
||
#[Package('checkout')] | ||
abstract class PaymentProcessException extends ShopwareHttpException | ||
{ | ||
private string $orderTransactionId; | ||
|
||
public function __construct( | ||
string $orderTransactionId, | ||
string $message, | ||
array $parameters = [], | ||
?\Throwable $e = null | ||
) { | ||
$this->orderTransactionId = $orderTransactionId; | ||
|
||
parent::__construct($message, $parameters, $e); | ||
} | ||
|
||
public function getStatusCode(): int | ||
{ | ||
return Response::HTTP_BAD_REQUEST; | ||
} | ||
|
||
public function getOrderTransactionId(): string | ||
{ | ||
return $this->orderTransactionId; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
polyfill/Shopware/Core/Checkout/Payment/PaymentException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Shopware\Core\Checkout\Payment; | ||
|
||
|
||
if (class_exists(__NAMESPACE__ . '/PaymentException')) { | ||
return; | ||
} | ||
|
||
use Shopware\Core\Checkout\Payment\Exception\AsyncPaymentFinalizeException; | ||
use Shopware\Core\Checkout\Payment\Exception\CustomerCanceledAsyncPaymentException; | ||
|
||
class PaymentException | ||
{ | ||
public static function asyncFinalizeInterrupted(string $orderTransactionId, string $errorMessage, ?\Throwable $e = null): self | ||
{ | ||
return new AsyncPaymentFinalizeException($orderTransactionId, $errorMessage, $e); | ||
} | ||
|
||
public static function customerCanceled(string $orderTransactionId, string $additionalInformation, ?\Throwable $e = null): self | ||
{ | ||
return new CustomerCanceledAsyncPaymentException($orderTransactionId, $additionalInformation, $e); | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
polyfill/Shopware/Core/System/Snippet/Files/AbstractSnippetFile.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Shopware\Core\System\Snippet\Files; | ||
|
||
|
||
if (class_exists(__NAMESPACE__.'/AbstractSnippetFile')) { | ||
return; | ||
} | ||
|
||
use Shopware\Core\Framework\Log\Package; | ||
|
||
#[Package('system-settings')] | ||
abstract class AbstractSnippetFile implements SnippetFileInterface | ||
{ | ||
/** | ||
* Returns the displayed name. | ||
* | ||
* Example: | ||
* storefront.en-GB | ||
*/ | ||
abstract public function getName(): string; | ||
|
||
/** | ||
* Returns the path to the json language file. | ||
* | ||
* Example: | ||
* /appPath/subDirectory/storefront.en-GB.json | ||
*/ | ||
abstract public function getPath(): string; | ||
|
||
/** | ||
* Returns the associated language ISO. | ||
* | ||
* Example: | ||
* en-GB | ||
* de-DE | ||
*/ | ||
abstract public function getIso(): string; | ||
|
||
/** | ||
* Return the snippet author, which will be used when editing a file snippet in a snippet set | ||
* | ||
* Example: | ||
* shopware | ||
* pluginName | ||
*/ | ||
abstract public function getAuthor(): string; | ||
|
||
/** | ||
* Returns a boolean which determines if its a base language file | ||
*/ | ||
abstract public function isBase(): bool; | ||
|
||
/** | ||
* Returns a technical name of the bundle or app that the file is belonged to | ||
*/ | ||
abstract public function getTechnicalName(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
src/Compatibility/Storefront/Route/PaymentMethodRoute/RemovePaymentMethodRoute63.php
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
src/Components/Subscription/DAL/Currency/CurrencyExtension.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Kiener\MolliePayments\Components\Subscription\DAL\Currency; | ||
|
||
use Kiener\MolliePayments\Components\Subscription\DAL\Subscription\SubscriptionDefinition; | ||
use Shopware\Core\Framework\DataAbstractionLayer\EntityExtension; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\Flag\CascadeDelete; | ||
use Shopware\Core\Framework\DataAbstractionLayer\Field\OneToManyAssociationField; | ||
use Shopware\Core\Framework\DataAbstractionLayer\FieldCollection; | ||
use Shopware\Core\System\Currency\CurrencyDefinition; | ||
|
||
class CurrencyExtension extends EntityExtension | ||
{ | ||
public function getDefinitionClass(): string | ||
{ | ||
return CurrencyDefinition::class; | ||
} | ||
|
||
public function extendFields(FieldCollection $collection): void | ||
{ | ||
$collection->add((new OneToManyAssociationField('subscriptions', SubscriptionDefinition::class, 'currency_id'))->addFlags(new CascadeDelete())); | ||
} | ||
} |
Oops, something went wrong.