Skip to content

Commit

Permalink
[!!!][TASK] Move glossary access registration into `EXT:deepltranslat…
Browse files Browse the repository at this point in the history
…e_glossary`

Glossary feature related code has been moved into a dedicated
addon extension `deepltranslate_glossary` but missed to move
the related access permission registration along the way.

This has been provided in the addon extension with [1] and
can now removed in the `deepltranslate_core` extension.

[1] web-vision/deepltranslate-glossary#1
  • Loading branch information
sbuerk committed Dec 19, 2024
1 parent 75109d3 commit 50c9da3
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 194 deletions.
10 changes: 0 additions & 10 deletions Build/phpstan/Core12/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ parameters:
count: 1
path: ../../../Classes/Form/Item/SiteConfigSupportedLanguageItemsProcFunc.php

-
message: "#^Method WebVision\\\\Deepltranslate\\\\Core\\\\Hooks\\\\ButtonBarHook\\:\\:buildParamsArrayForListView\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: ../../../Classes/Hooks/ButtonBarHook.php

-
message: "#^Parameter \\#1 \\$href of method TYPO3\\\\CMS\\\\Backend\\\\Template\\\\Components\\\\Buttons\\\\LinkButton\\:\\:setHref\\(\\) expects string, Psr\\\\Http\\\\Message\\\\UriInterface given\\.$#"
count: 1
path: ../../../Classes/Hooks/ButtonBarHook.php

-
message: "#^Method WebVision\\\\Deepltranslate\\\\Core\\\\Override\\\\Core12\\\\DatabaseRecordList\\:\\:makeLocalizationPanel\\(\\) has parameter \\$translations with no value type specified in iterable type array\\.$#"
count: 1
Expand Down
30 changes: 0 additions & 30 deletions Classes/Access/AllowedGlossarySyncAccess.php

This file was deleted.

96 changes: 0 additions & 96 deletions Classes/Hooks/ButtonBarHook.php

This file was deleted.

6 changes: 0 additions & 6 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,6 @@
<trans-unit id="be_groups.deepltranslate_access.items.translateAllowed.description">
<source></source>
</trans-unit>
<trans-unit id="be_groups.deepltranslate_access.items.allowedGlossarySync.title">
<source>Allowed Glossary Sync</source>
</trans-unit>
<trans-unit id="be_groups.deepltranslate_access.items.allowedGlossarySync.description">
<source></source>
</trans-unit>

<!-- Widget -->
<trans-unit id="widgets.deepltranslate.widget.useswidget.title">
Expand Down
51 changes: 0 additions & 51 deletions Tests/Unit/Access/AllowedGlossarySyncAccessTest.php

This file was deleted.

1 change: 0 additions & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@

$accessRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\WebVision\Deepltranslate\Core\Access\AccessRegistry::class);
$accessRegistry->addAccess((new \WebVision\Deepltranslate\Core\Access\AllowedTranslateAccess()));
$accessRegistry->addAccess((new \WebVision\Deepltranslate\Core\Access\AllowedGlossarySyncAccess()));
})();

0 comments on commit 50c9da3

Please sign in to comment.