‪TYPO3CMS  10.4
WidgetRequestHandler.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 
23 
32 {
37 
41  protected ‪$configurationManager;
42 
46  protected ‪$requestBuilder;
47 
52  {
53  $this->ajaxWidgetContextHolder = ‪$ajaxWidgetContextHolder;
54  }
55 
60  {
61  $this->configurationManager = ‪$configurationManager;
62  }
63 
68  {
69  // This method intentionally left blank
70  }
71 
76  {
77  $this->requestBuilder = ‪$requestBuilder;
78  }
79 
85  public function ‪handleRequest()
86  {
87  $request = $this->requestBuilder->build();
88  $response = $this->objectManager->get(Response::class);
89  $this->dispatcher->dispatch($request, $response);
90  return $response;
91  }
92 
96  public function ‪canHandleRequest()
97  {
98  $rawGetArguments = GeneralUtility::_GET();
99  return isset($rawGetArguments['fluid-widget-id']);
100  }
101 
107  public function ‪getPriority()
108  {
109  return 200;
110  }
111 }
‪TYPO3\CMS\Fluid\Core\Widget
Definition: AbstractWidgetController.php:16
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\$requestBuilder
‪TYPO3 CMS Fluid Core Widget WidgetRequestBuilder $requestBuilder
Definition: WidgetRequestHandler.php:43
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectRequestBuilder
‪injectRequestBuilder(RequestBuilder $requestBuilder)
Definition: WidgetRequestHandler.php:64
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestBuilder
Definition: WidgetRequestBuilder.php:28
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\handleRequest
‪TYPO3 CMS Extbase Mvc Web Response handleRequest()
Definition: WidgetRequestHandler.php:82
‪TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
Definition: ConfigurationManagerInterface.php:28
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectConfigurationManager
‪injectConfigurationManager(ConfigurationManagerInterface $configurationManager)
Definition: WidgetRequestHandler.php:56
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler
Definition: WidgetRequestHandler.php:32
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\canHandleRequest
‪bool canHandleRequest()
Definition: WidgetRequestHandler.php:93
‪TYPO3\CMS\Extbase\Mvc\Web\Response
Definition: Response.php:26
‪TYPO3\CMS\Extbase\Mvc\Web\AbstractRequestHandler
Definition: AbstractRequestHandler.php:28
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\getPriority
‪int getPriority()
Definition: WidgetRequestHandler.php:104
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\$configurationManager
‪TYPO3 CMS Extbase Configuration ConfigurationManagerInterface $configurationManager
Definition: WidgetRequestHandler.php:39
‪TYPO3\CMS\Fluid\Core\Widget\AjaxWidgetContextHolder
Definition: AjaxWidgetContextHolder.php:33
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectWidgetRequestBuilder
‪injectWidgetRequestBuilder(WidgetRequestBuilder $requestBuilder)
Definition: WidgetRequestHandler.php:72
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\$ajaxWidgetContextHolder
‪TYPO3 CMS Fluid Core Widget AjaxWidgetContextHolder $ajaxWidgetContextHolder
Definition: WidgetRequestHandler.php:35
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectAjaxWidgetContextHolder
‪injectAjaxWidgetContextHolder(AjaxWidgetContextHolder $ajaxWidgetContextHolder)
Definition: WidgetRequestHandler.php:48
‪TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder
Definition: RequestBuilder.php:38