‪TYPO3CMS  ‪main
ModuleTemplateFactory.php
Go to the documentation of this file.
1 <?php
2 
3 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 
19 
20 use Psr\Http\Message\ServerRequestInterface;
28 
33 {
34  public function ‪__construct(
35  protected readonly ‪PageRenderer $pageRenderer,
36  protected readonly ‪IconFactory $iconFactory,
37  protected readonly ‪UriBuilder $uriBuilder,
38  protected readonly ‪ModuleProvider $moduleProvider,
39  protected readonly ‪FlashMessageService $flashMessageService,
40  protected readonly ‪ExtensionConfiguration $extensionConfiguration,
41  protected readonly ‪BackendViewFactory $viewFactory,
42  ) {}
43 
44  public function ‪create(ServerRequestInterface $request): ‪ModuleTemplate
45  {
46  return new ‪ModuleTemplate(
47  $this->pageRenderer,
48  $this->iconFactory,
49  $this->uriBuilder,
50  $this->moduleProvider,
51  $this->flashMessageService,
52  $this->extensionConfiguration,
53  $this->viewFactory->create($request),
54  $request
55  );
56  }
57 }
‪TYPO3\CMS\Backend\View\BackendViewFactory
Definition: BackendViewFactory.php:35
‪TYPO3\CMS\Core\Configuration\ExtensionConfiguration
Definition: ExtensionConfiguration.php:47
‪TYPO3\CMS\Backend\Template\ModuleTemplateFactory
Definition: ModuleTemplateFactory.php:33
‪TYPO3\CMS\Core\Imaging\IconFactory
Definition: IconFactory.php:34
‪TYPO3\CMS\Backend\Module\ModuleProvider
Definition: ModuleProvider.php:29
‪TYPO3\CMS\Backend\Template\ModuleTemplate
Definition: ModuleTemplate.php:46
‪TYPO3\CMS\Core\Page\PageRenderer
Definition: PageRenderer.php:44
‪TYPO3\CMS\Backend\Routing\UriBuilder
Definition: UriBuilder.php:44
‪TYPO3\CMS\Backend\Template
‪TYPO3\CMS\Backend\Template\ModuleTemplateFactory\__construct
‪__construct(protected readonly PageRenderer $pageRenderer, protected readonly IconFactory $iconFactory, protected readonly UriBuilder $uriBuilder, protected readonly ModuleProvider $moduleProvider, protected readonly FlashMessageService $flashMessageService, protected readonly ExtensionConfiguration $extensionConfiguration, protected readonly BackendViewFactory $viewFactory,)
Definition: ModuleTemplateFactory.php:34
‪TYPO3\CMS\Core\Messaging\FlashMessageService
Definition: FlashMessageService.php:27
‪TYPO3\CMS\Backend\Template\ModuleTemplateFactory\create
‪create(ServerRequestInterface $request)
Definition: ModuleTemplateFactory.php:44