Skip to content

Commit

Permalink
[UPGRADE] Replace removed method pageRenderer->loadRequireJsModule
Browse files Browse the repository at this point in the history
  • Loading branch information
tinzog committed Dec 18, 2024
1 parent c95ba1b commit 1497177
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Classes/Controller/FileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class FileController extends ActionController
public function injectPageRenderer(PageRenderer $pageRenderer): void
{
$this->actualInjectPageRenderer($pageRenderer);
$this->pageRenderer->loadRequireJsModule('TYPO3/CMS/In2publishCore/BackendModule');
$this->pageRenderer->loadJavaScriptModule('TYPO3/CMS/In2publishCore/BackendModule');
$this->pageRenderer->addCssFile(
'EXT:in2publish_core/Resources/Public/Css/Modules.css',
'stylesheet',
Expand Down Expand Up @@ -112,8 +112,8 @@ public function indexAction(): ResponseInterface
$this->view->assign('publishingAvailable', true);
}

$this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Tooltip');
$this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Modal');
$this->pageRenderer->loadJavaScriptModule('TYPO3/CMS/Backend/Tooltip');
$this->pageRenderer->loadJavaScriptModule('TYPO3/CMS/Backend/Modal');
$this->pageRenderer->addInlineLanguageLabelFile(
'EXT:in2publish_core/Resources/Private/Language/locallang_m3_js.xlf',
);
Expand Down
4 changes: 2 additions & 2 deletions Classes/Controller/RecordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ class RecordController extends ActionController
public function injectPageRenderer(PageRenderer $pageRenderer): void
{
$this->actualInjectPageRenderer($pageRenderer);
$this->pageRenderer->loadRequireJsModule('TYPO3/CMS/In2publishCore/BackendModule');
$this->pageRenderer->loadRequireJsModule('TYPO3/CMS/In2publishCore/BackendEnhancements');
$this->pageRenderer->loadJavaScriptModule('TYPO3/CMS/In2publishCore/BackendModule');
$this->pageRenderer->loadJavaScriptModule('TYPO3/CMS/In2publishCore/BackendEnhancements');
$this->pageRenderer->addCssFile(
'EXT:in2publish_core/Resources/Public/Css/Modules.css',
'stylesheet',
Expand Down
2 changes: 1 addition & 1 deletion Classes/Middleware/InjectLoadingOverlayMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
'',
false,
);
$pageRenderer->loadRequireJsModule('TYPO3/CMS/In2publishCore/LoadingOverlay');
$pageRenderer->loadJavaScriptModule('TYPO3/CMS/In2publishCore/LoadingOverlay');
$pageRenderer->addInlineLanguageLabelFile('EXT:in2publish_core/Resources/Private/Language/locallang_js.xlf');

$response = $handler->handle($request);
Expand Down

0 comments on commit 1497177

Please sign in to comment.