‪TYPO3CMS  9.5
WidgetRequestHandler.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
25 {
30 
34  protected ‪$configurationManager;
35 
39  protected ‪$requestBuilder;
40 
45  {
46  $this->ajaxWidgetContextHolder = ‪$ajaxWidgetContextHolder;
47  }
48 
52  public function ‪injectConfigurationManager(\‪TYPO3\CMS\‪Extbase\Configuration\ConfigurationManagerInterface ‪$configurationManager)
53  {
54  $this->configurationManager = ‪$configurationManager;
55  }
56 
61  {
62  // This method intentionally left blank
63  }
64 
69  {
70  $this->requestBuilder = ‪$requestBuilder;
71  }
72 
78  public function ‪handleRequest()
79  {
80  $request = $this->requestBuilder->build();
81  $response = $this->objectManager->get(\‪TYPO3\CMS\‪Extbase\Mvc\Web\Response::class);
82  $this->dispatcher->dispatch($request, $response);
83  return $response;
84  }
85 
89  public function ‪canHandleRequest()
90  {
91  $rawGetArguments = \TYPO3\CMS\Core\Utility\GeneralUtility::_GET();
92  return isset($rawGetArguments['fluid-widget-id']);
93  }
94 
100  public function ‪getPriority()
101  {
102  return 200;
103  }
104 }
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectRequestBuilder
‪injectRequestBuilder(\TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder $requestBuilder)
Definition: WidgetRequestHandler.php:57
‪TYPO3\CMS\Fluid\Core\Widget
Definition: AbstractWidgetController.php:2
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\$requestBuilder
‪TYPO3 CMS Fluid Core Widget WidgetRequestBuilder $requestBuilder
Definition: WidgetRequestHandler.php:36
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestBuilder
Definition: WidgetRequestBuilder.php:26
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\handleRequest
‪TYPO3 CMS Extbase Mvc Web Response handleRequest()
Definition: WidgetRequestHandler.php:75
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler
Definition: WidgetRequestHandler.php:25
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectAjaxWidgetContextHolder
‪injectAjaxWidgetContextHolder(\TYPO3\CMS\Fluid\Core\Widget\AjaxWidgetContextHolder $ajaxWidgetContextHolder)
Definition: WidgetRequestHandler.php:41
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\canHandleRequest
‪bool canHandleRequest()
Definition: WidgetRequestHandler.php:86
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectWidgetRequestBuilder
‪injectWidgetRequestBuilder(\TYPO3\CMS\Fluid\Core\Widget\WidgetRequestBuilder $requestBuilder)
Definition: WidgetRequestHandler.php:65
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\injectConfigurationManager
‪injectConfigurationManager(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
Definition: WidgetRequestHandler.php:49
‪TYPO3\CMS\Extbase\Mvc\Web\AbstractRequestHandler
Definition: AbstractRequestHandler.php:22
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\getPriority
‪int getPriority()
Definition: WidgetRequestHandler.php:97
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\$configurationManager
‪TYPO3 CMS Extbase Configuration ConfigurationManagerInterface $configurationManager
Definition: WidgetRequestHandler.php:32
‪TYPO3\CMS\Fluid\Core\Widget\AjaxWidgetContextHolder
Definition: AjaxWidgetContextHolder.php:29
‪TYPO3\CMS\Fluid\Core\Widget\WidgetRequestHandler\$ajaxWidgetContextHolder
‪TYPO3 CMS Fluid Core Widget AjaxWidgetContextHolder $ajaxWidgetContextHolder
Definition: WidgetRequestHandler.php:28
‪TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder
Definition: RequestBuilder.php:29