‪TYPO3CMS  9.5
AbstractController.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
18 use Psr\Http\Message\ServerRequestInterface;
22 
28 {
37  protected function ‪initializeStandaloneView(ServerRequestInterface $request, string $templatePath): ‪StandaloneView
38  {
39  $viewRootPath = GeneralUtility::getFileAbsFileName('EXT:install/Resources/Private/');
40  $view = GeneralUtility::makeInstance(StandaloneView::class);
41  $view->getRequest()->setControllerExtensionName('Install');
42  $view->setTemplatePathAndFilename($viewRootPath . 'Templates/' . $templatePath);
43  $view->setLayoutRootPaths([$viewRootPath . 'Layouts/']);
44  $view->setPartialRootPaths([$viewRootPath . 'Partials/']);
45  $view->assignMultiple([
46  'controller' => $request->getQueryParams()['install']['controller'] ?? 'maintenance',
47  'context' => $request->getQueryParams()['install']['context'] ?? '',
48  'composerMode' => ‪Environment::isComposerMode(),
49  ]);
50  return $view;
51  }
52 
61  {
66  }
67 }
‪TYPO3\CMS\Core\Core\Bootstrap\loadBaseTca
‪static Bootstrap null loadBaseTca(bool $allowCaching=true, FrontendInterface $coreCache=null)
Definition: Bootstrap.php:832
‪TYPO3\CMS\Core\Core\Bootstrap\unsetReservedGlobalVariables
‪static Bootstrap null unsetReservedGlobalVariables()
Definition: Bootstrap.php:808
‪TYPO3\CMS\Install\Controller\AbstractController\initializeStandaloneView
‪StandaloneView initializeStandaloneView(ServerRequestInterface $request, string $templatePath)
Definition: AbstractController.php:37
‪TYPO3\CMS\Install\Controller\AbstractController\loadExtLocalconfDatabaseAndExtTables
‪loadExtLocalconfDatabaseAndExtTables()
Definition: AbstractController.php:60
‪TYPO3\CMS\Install\Controller
Definition: AbstractController.php:3
‪TYPO3\CMS\Core\Core\Bootstrap\loadTypo3LoadedExtAndExtLocalconf
‪static Bootstrap null loadTypo3LoadedExtAndExtLocalconf($allowCaching=true, FrontendInterface $coreCache=null)
Definition: Bootstrap.php:551
‪TYPO3\CMS\Core\Core\Bootstrap\loadExtTables
‪static Bootstrap null loadExtTables(bool $allowCaching=true)
Definition: Bootstrap.php:864
‪TYPO3\CMS\Core\Core\Environment\isComposerMode
‪static bool isComposerMode()
Definition: Environment.php:117
‪TYPO3\CMS\Fluid\View\StandaloneView
Definition: StandaloneView.php:32
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:39
‪TYPO3\CMS\Install\Controller\AbstractController
Definition: AbstractController.php:28
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:45