Skip to content

Commit

Permalink
Merge pull request #3 from franzholz/develop
Browse files Browse the repository at this point in the history
deprecation 99615 - GeneralUtility::_GPmerged
  • Loading branch information
franzholz authored Oct 23, 2024
2 parents 2ad61db + e35f2ca commit 33ca87b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Classes/Api/PaymentApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static public function getTransactorConf ($gatewayExtensionKey, $key = '')
$transactorConf = [];
$result = '';

$transactorConf = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
$transactorConf = GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get($gatewayExtensionKey);

Expand Down Expand Up @@ -84,15 +84,15 @@ static public function getConf (
)
{
$result = [];
$result = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
$result = GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get('transactor');

if (
$extensionKey != '' &&
isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extensionKey])
) {
$extManagerConf = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
$extManagerConf = GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get($extensionKey);
}
Expand Down
6 changes: 3 additions & 3 deletions Classes/Domain/GatewayProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;

use JambageCom\Transactor\Domain\Gateway;
Expand Down Expand Up @@ -61,11 +61,11 @@ class GatewayProxy implements \JambageCom\Transactor\Domain\GatewayInterface
public function init ($extensionKey)
{
$this->gatewayClass = '';
$this->extensionManagerConf = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
$this->extensionManagerConf = GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get('transactor');

$newExtensionManagerConf = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
$newExtensionManagerConf = GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
)->get($extensionKey);

Expand Down
8 changes: 6 additions & 2 deletions Classes/Request/Parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*
*/

use TYPO3\CMS\Core\Utility\ArrayUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;


Expand Down Expand Up @@ -90,10 +91,13 @@ static public function getPiVars ()
self::$prefixId &&
!isset(self::$piVars[self::$prefixId])
) {
self::$piVars = GeneralUtility::_GPmerged(self::$prefixId);
self::$piVars = $GLOBALS['TYPO3_REQUEST']->getQueryParams()[self::$prefixId];
ArrayUtility::mergeRecursiveWithOverrule(
self::$piVars,
$GLOBALS['TYPO3_REQUEST']->getParsedBody()[self::$prefixId]
);
}
$result = self::$piVars;
return $result;
}
}

2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'title' => 'Payment Transactor API',
'description' => 'This is a basic API to develop extensions which connect to different payment transaction gateways.',
'category' => 'misc',
'version' => '0.11.0',
'version' => '0.11.1',
'state' => 'stable',
'clearcacheonload' => 0,
'author' => 'Franz Holzinger',
Expand Down

0 comments on commit 33ca87b

Please sign in to comment.