Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
content_replacer
Commits
e9e799e8
Commit
e9e799e8
authored
Mar 15, 2022
by
Matthias Adrowski
Browse files
[TASK] Migrate TYPO3_MODE usage
parent
83dfc13b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/AbstractParserService.php
View file @
e9e799e8
...
...
@@ -26,6 +26,7 @@ namespace SGalinski\ContentReplacer\Service;
***************************************************************/
use
SGalinski\ContentReplacer\Repository\TermRepository
;
use
TYPO3\CMS\Core\Http\ApplicationType
;
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
use
TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager
;
use
TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
;
...
...
@@ -105,7 +106,8 @@ abstract class AbstractParserService {
}
if
(
$stdWrap
!==
''
)
{
if
(
TYPO3_MODE
===
'BE'
)
{
$applicationType
=
GeneralUtility
::
makeInstance
(
ApplicationType
::
class
);
if
(
$applicationType
->
isBackend
())
{
$configurationManager
=
GeneralUtility
::
makeInstance
(
BackendConfigurationManager
::
class
);
$extbaseFrameworkConfiguration
=
$configurationManager
->
getTypoScriptSetup
();
$typoscriptConfiguration
=
$extbaseFrameworkConfiguration
[
'plugin.'
][
'tx_content_replacer.'
][
$stdWrap
.
'.'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment