After I've installed my TYPO3 extension I faced this issue. I did the research for this issue. I found these solutions but none worked for me:
here is my composer
{
"name": "GlobalizationPartners/Gpi",
"type": "typo3-cms-extension",
"description": "",
"keywords": [
"TYPO3 CMS",
"extension"
],
"autoload": {
"psr-4": {
"GlobalizationPartners\\Gpi\\": "public/typo3conf/ext/gpi/Classes/"
}
},
"license": ["GPL-2.0-or-later"],
"require": {
"typo3/cms-core": ">=8.7.0,<11.0"
},
"repositories": [
{ "type": "composer", "url": "https://composer.typo3.org/" }
]
}
here is my controller
<?php
namespace GlobalizationPartners\Gpi\Controller;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
class gpiController extends ActionController
{
/**
* Default action for backend module
*
* @return object
* @since 5.2.0
*/
public function indexAction()
{
return GeneralUtility::makeInstance(\GlobalizationPartners\Gpi\Backend\gpiModule::class);
}
}