Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Commit f519357

Browse files
committed
Injected properties must use FQCN, or else the backend crashes
1 parent 183fea6 commit f519357

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

Classes/MVC/Controller/ExtDirectActionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
class ExtDirectActionController extends ActionController
2020
{
2121
/**
22-
* @var PersistenceManagerInterface
2322
* @inject
23+
* @var \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
2424
*/
2525
protected $persistenceManager;
2626

Classes/MVC/ExtDirect/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Request
1313
{
1414
/**
1515
* @inject
16-
* @var ObjectManagerInterface
16+
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
1717
*/
1818
protected $objectManager;
1919

Classes/MVC/ExtDirect/RequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ class RequestBuilder implements TYPO3\CMS\Core\SingletonInterface
1414
{
1515
/**
1616
* @inject
17-
* @var ObjectManagerInterface
17+
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
1818
*/
1919
protected $objectManager;
2020

2121
/**
2222
* @inject
23-
* @var ConfigurationManager
23+
* @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManager
2424
*/
2525
protected $configurationManager;
2626

Classes/MVC/ExtDirect/Transaction.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Ecodev\Newsletter\MVC\ExtDirect;
44

55
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
6-
use TYPO3\CMS\Extbase\Mvc\Web\Request;
76
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
87
use TYPO3\CMS\Extbase\Reflection\ReflectionService;
98

@@ -16,13 +15,13 @@ class Transaction
1615
{
1716
/**
1817
* @inject
19-
* @var ReflectionService
18+
* @var \TYPO3\CMS\Extbase\Reflection\ReflectionService
2019
*/
2120
protected $reflectionService;
2221

2322
/**
2423
* @inject
25-
* @var ObjectManagerInterface
24+
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
2625
*/
2726
protected $objectManager;
2827

@@ -118,7 +117,7 @@ public function injectReflectionService(ReflectionService $reflectionService)
118117
public function buildRequest()
119118
{
120119
$frameworkConfiguration = $this->configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
121-
$request = $this->objectManager->get(Request::class);
120+
$request = $this->objectManager->get(\TYPO3\CMS\Extbase\Mvc\Web\Request::class);
122121
$request->setControllerObjectName($this->getControllerObjectName());
123122
$request->setControllerActionName($this->getControllerActionName());
124123
$request->setPluginName($frameworkConfiguration['pluginName']);

Classes/MVC/View/JsonView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class JsonView extends AbstractView
8282
protected $configuration = [];
8383

8484
/**
85-
* @var PersistenceManagerInterface
8685
* @inject
86+
* @var \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface
8787
*/
8888
protected $persistenceManager;
8989

0 commit comments

Comments
 (0)