TYPO3  7.6
AbstractRequestHandler.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Extbase\Mvc\Web;
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 
21 {
25  protected $objectManager;
26 
30  protected $dispatcher;
31 
35  protected $requestBuilder;
36 
41 
45  public function injectDispatcher(\TYPO3\CMS\Extbase\Mvc\Dispatcher $dispatcher)
46  {
47  $this->dispatcher = $dispatcher;
48  }
49 
53  public function injectRequestBuilder(\TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder $requestBuilder)
54  {
55  $this->requestBuilder = $requestBuilder;
56  }
57 
61  public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
62  {
63  $this->objectManager = $objectManager;
64  }
65 
69  public function injectEnvironmentService(\TYPO3\CMS\Extbase\Service\EnvironmentService $environmentService)
70  {
71  $this->environmentService = $environmentService;
72  }
73 
79  public function canHandleRequest()
80  {
81  return true;
82  }
83 
90  public function getPriority()
91  {
92  return 100;
93  }
94 }