Skip to content

Commit

Permalink
* compatibility for TYPO3 9: replace deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
franzholz committed Apr 30, 2020
1 parent a8894b1 commit 806e924
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2020-04-30 Franz Holzinger <[email protected]>
* compatibility for TYPO3 9: replace deprecated methods

2019-12-20 Franz Holzinger <[email protected]>
* compatibility for TYPO3 9: transactor 0.8.0 now runs fully under TYPO3 9.5.
* set compatibility = 0 to use the new API by default.
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/GatewayProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function init ($extensionKey)
) {
$this->gatewayClass = $this->extensionManagerConf['gatewayClass'];
} else {
$composerFile = ExtensionManagementUtility::siteRelPath($extensionKey) . 'composer.json';
$composerFile = \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath($extensionKey)) . 'composer.json';
if (file_exists($composerFile)) {
$content = file_get_contents($composerFile);
$content = json_decode($content, true);
Expand Down
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.8.0',
'version' => '0.8.1',
'state' => 'stable',
'uploadfolder' => 0,
'createDirs' => '',
Expand Down
2 changes: 1 addition & 1 deletion lib/class.tx_transactor_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static public function getGatewayProxyObject (
$handleLib,
$confScript
) {
GeneralUtility::requireOnce(ExtensionManagementUtility::extPath($handleLib) . 'model/class.tx_' . $handleLib . '_gatewayfactory.php');
require_once(ExtensionManagementUtility::extPath($handleLib) . 'model/class.tx_' . $handleLib . '_gatewayfactory.php');

if (is_array($confScript)) {
$gatewayExtKey = $confScript['extName'];
Expand Down

0 comments on commit 806e924

Please sign in to comment.