Skip to content

Commit 3232c13

Browse files
committed
Merge branch 'hotfix/1.2.1'
2 parents c74ff86 + c3bd5bd commit 3232c13

10 files changed

Lines changed: 2612 additions & 1550 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
- nothing, yet
99

10+
## [1.2.1] - 2020-06-12
11+
### Fixed
12+
- Various bugs caused by `use`- and `declare(strict_type=1);`-Statements in extension's bootstrap files (`ext_localconf.php`, `ext_tables.php`, `be_users.php`, `fe_users.php`, `sys_template.php` & `tt_content.php`)
13+
1014
## [1.2.0] - 2020-06-12
1115
### Changed
1216
- Add Signal/Slot-Dispatcher in Google Authenticator Setup Handler
@@ -173,7 +177,8 @@ to meet frontend requirements
173177
## [1.0.0] - 2018-06-17
174178
- Initial development
175179

176-
[Unreleased]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.0...HEAD
180+
[Unreleased]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.1...HEAD
181+
[1.2.1]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.0...v1.2.1
177182
[1.2.0]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.1.7...v1.2.0
178183
[1.1.7]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.1.6...v1.1.7
179184
[1.1.6]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.1.5...v1.1.6

Configuration/TCA/Overrides/be_users.php

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php declare(strict_types=1);
1+
<?php
22
/**
33
* Table configuration for 'be_users'
44
*
@@ -15,21 +15,17 @@
1515
* @see https://typo3.org
1616
*/
1717

18-
use CodeFareith\CfGoogleAuthenticator\Hook\UserSettings;
19-
use CodeFareith\CfGoogleAuthenticator\Utility\PathUtility;
20-
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
21-
2218
defined('TYPO3_MODE')
2319
or die('Access denied');
2420

2521
call_user_func(
2622
static function () {
27-
ExtensionManagementUtility::addTCAcolumns(
23+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
2824
'be_users',
2925
[
3026
'tx_cfgoogleauthenticator_enabled' => [
3127
'exclude' => false,
32-
'label' => PathUtility::makeLocalLangLinkPath(
28+
'label' => \CodeFareith\CfGoogleAuthenticator\Utility\PathUtility::makeLocalLangLinkPath(
3329
'be_users.tx_cfgoogleauthenticator_enabled',
3430
'locallang_db.xlf'
3531
),
@@ -39,22 +35,22 @@ static function () {
3935
],
4036
'tx_cfgoogleauthenticator_secret' => [
4137
'exclude' => false,
42-
'label' => PathUtility::makeLocalLangLinkPath(
38+
'label' => \CodeFareith\CfGoogleAuthenticator\Utility\PathUtility::makeLocalLangLinkPath(
4339
'be_users.tx_cfgoogleauthenticator_secret',
4440
'locallang_db.xlf'
4541
),
4642
'config' => [
4743
'type' => 'user',
48-
'userFunc' => UserSettings::class . '->createSecretField',
44+
'userFunc' => \CodeFareith\CfGoogleAuthenticator\Hook\UserSettings::class . '->createSecretField',
4945
],
5046
],
5147
]
5248
);
5349

54-
ExtensionManagementUtility::addToAllTCAtypes(
50+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
5551
'be_users',
5652
'--div--;'
57-
. PathUtility::makeLocalLangLinkPath(
53+
. \CodeFareith\CfGoogleAuthenticator\Utility\PathUtility::makeLocalLangLinkPath(
5854
'tx_cfgoogleauthenticator',
5955
'locallang_db.xlf'
6056
) . ',

Configuration/TCA/Overrides/fe_users.php

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php declare(strict_types=1);
1+
<?php
22
/**
33
* Table configuration for 'fe_users'
44
*
@@ -15,21 +15,17 @@
1515
* @see https://typo3.org
1616
*/
1717

18-
use CodeFareith\CfGoogleAuthenticator\Hook\UserSettings;
19-
use CodeFareith\CfGoogleAuthenticator\Utility\PathUtility;
20-
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
21-
2218
defined('TYPO3_MODE')
2319
or die('Access denied');
2420

2521
call_user_func(
2622
static function () {
27-
ExtensionManagementUtility::addTCAcolumns(
23+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
2824
'fe_users',
2925
[
3026
'tx_cfgoogleauthenticator_enabled' => [
3127
'exclude' => false,
32-
'label' => PathUtility::makeLocalLangLinkPath(
28+
'label' => \CodeFareith\CfGoogleAuthenticator\Utility\PathUtility::makeLocalLangLinkPath(
3329
'fe_users.tx_cfgoogleauthenticator_enabled',
3430
'locallang_db.xlf'
3531
),
@@ -39,22 +35,22 @@ static function () {
3935
],
4036
'tx_cfgoogleauthenticator_secret' => [
4137
'exclude' => false,
42-
'label' => PathUtility::makeLocalLangLinkPath(
38+
'label' => \CodeFareith\CfGoogleAuthenticator\Utility\PathUtility::makeLocalLangLinkPath(
4339
'be_users.tx_cfgoogleauthenticator_secret',
4440
'locallang_db.xlf'
4541
),
4642
'config' => [
4743
'type' => 'user',
48-
'userFunc' => UserSettings::class . '->createSecretField',
44+
'userFunc' => \CodeFareith\CfGoogleAuthenticator\Hook\UserSettings::class . '->createSecretField',
4945
],
5046
],
5147
]
5248
);
5349

54-
ExtensionManagementUtility::addToAllTCAtypes(
50+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
5551
'fe_users',
5652
'--div--;'
57-
. PathUtility::makeLocalLangLinkPath(
53+
. \CodeFareith\CfGoogleAuthenticator\Utility\PathUtility::makeLocalLangLinkPath(
5854
'tx_cfgoogleauthenticator',
5955
'locallang_db.xlf'
6056
) . ',

Configuration/TCA/Overrides/sys_template.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php declare(strict_types=1);
1+
<?php
22
/**
33
* Table configuration for 'sys_template'
44
*
@@ -15,14 +15,12 @@
1515
* @see https://typo3.org
1616
*/
1717

18-
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
19-
2018
defined('TYPO3_MODE')
2119
or die('Access denied');
2220

2321
call_user_func(
2422
static function () {
25-
ExtensionManagementUtility::addStaticFile(
23+
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
2624
'cf_google_authenticator',
2725
'Configuration/TypoScript',
2826
'[CodeFareith] Google Authenticator'
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php declare(strict_types=1);
1+
<?php
22
/**
33
* Table configuration for 'tt_content'
44
*
@@ -14,19 +14,15 @@
1414
* @see https://typo3.org
1515
*/
1616

17-
use CodeFareith\CfGoogleAuthenticator\Utility\ExtensionBasicDataUtility;
18-
use CodeFareith\CfGoogleAuthenticator\Utility\PathUtility;
19-
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
20-
2117
defined('TYPO3_MODE')
2218
or die('Access denied');
2319

2420
call_user_func(
2521
static function () {
26-
ExtensionUtility::registerPlugin(
27-
ExtensionBasicDataUtility::getExtensionKey(),
22+
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
23+
\CodeFareith\CfGoogleAuthenticator\Utility\ExtensionBasicDataUtility::getExtensionKey(),
2824
'Setup',
29-
PathUtility::makeLocalLangLinkPath('plugin.setup')
25+
\CodeFareith\CfGoogleAuthenticator\Utility\PathUtility::makeLocalLangLinkPath('plugin.setup')
3026
);
3127
}
3228
);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
},
105105
"extra": {
106106
"branch-alias": {
107-
"dev-master": "1.1.x-dev"
107+
"dev-master": "1.2.x-dev"
108108
},
109109
"typo3/cms": {
110110
"extension-key": "cf_google_authenticator",

0 commit comments

Comments
 (0)