‪TYPO3CMS  10.4
BackendLogModuleBootstrap.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use Psr\Http\Message\ServerRequestInterface;
22 
33 {
39  public function ‪main()
40  {
41  $options = [];
42  $_GET['tx_belog_system_beloglog']['pageId'] = GeneralUtility::_GP('id');
43  $_GET['tx_belog_system_beloglog']['layout'] = 'Plain';
44  $serverRequest = ‪$GLOBALS['TYPO3_REQUEST'] ?? null;
45  if ($serverRequest instanceof ServerRequestInterface) {
46  ‪$GLOBALS['TYPO3_REQUEST'] = $serverRequest->withQueryParams($_GET);
47  }
48  $options['moduleConfiguration'] = [
49  'extensionName' => 'Belog',
50  ];
51  $options['moduleName'] = 'system_BelogLog';
52 
53  $route = GeneralUtility::makeInstance(Route::class, '/system/BelogLog/', $options);
54  $serverRequest = $serverRequest->withAttribute('route', $route);
55  $extbaseBootstrap = GeneralUtility::makeInstance(Bootstrap::class);
56  return $extbaseBootstrap->handleBackendRequest($serverRequest);
57  }
58 }
‪TYPO3\CMS\Backend\Routing\Route
Definition: Route.php:24
‪TYPO3\CMS\Belog\Module\BackendLogModuleBootstrap\main
‪string main()
Definition: BackendLogModuleBootstrap.php:39
‪TYPO3\CMS\Belog\Module
Definition: BackendLogModuleBootstrap.php:16
‪TYPO3\CMS\Belog\Module\BackendLogModuleBootstrap
Definition: BackendLogModuleBootstrap.php:33
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Extbase\Core\Bootstrap
Definition: Bootstrap.php:43
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46