Skip to content

Commit

Permalink
Various small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Jul 4, 2022
1 parent 1a4fc83 commit 53db865
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Command/CreateNotifyTokenCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(Payum $payum)
protected function configure(): void
{
$this
->setName(self::$defaultName)
->setName(static::$defaultName)
->addArgument('gateway-name', InputArgument::REQUIRED, 'The gateway name associated with the token')
->addOption('model-class', null, InputOption::VALUE_OPTIONAL, 'The model class associated with the token')
->addOption('model-id', null, InputOption::VALUE_OPTIONAL, 'The model id associated with the token')
Expand Down
2 changes: 1 addition & 1 deletion Command/DebugGatewayCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(Payum $payum)
protected function configure(): void
{
$this
->setName(self::$defaultName)
->setName(static::$defaultName)
->setAliases(['payum:gateway:debug'])
->addArgument('gateway-name', InputArgument::OPTIONAL, 'The gateway name you want to get information about.')
->addOption('show-supports', null, InputOption::VALUE_NONE, 'Show what actions supports.')
Expand Down
2 changes: 1 addition & 1 deletion Controller/PayumController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(?Payum $payum = null)
if ($payum === null) {
@trigger_error(
sprintf(
'%s requires an instance of %s asd the first argument. Not passing this object is deprecated and it will be required in payum/payum-bundle 2.0.',
'%s requires an instance of %s asd the first argument. Not passing this object is deprecated and it will be required in payum/payum-bundle 3.0.',
__METHOD__,
Payum::class
),
Expand Down
5 changes: 0 additions & 5 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

Library [upgrades](https://github.com/Payum/Payum/blob/master/UPGRADE.md).

## 2.4 to 2.5

* deprecated function `PayumController->getHttpRequestVerifier()` removed. Use `payum->getHttpRequestVerifier()`
* deprecated function `PayumController->getTokenFactory()` removed. Use `payum->getTokenFactory()`

## 2.0 to 2.1

* `payum.http_client` service was removed. Use gateway's config to overwrite it.
Expand Down

0 comments on commit 53db865

Please sign in to comment.