'TYPO3 Symfony Services.yaml class not find
I am trying to update an older extension to Typo3 V11.
Currently I am got the following error:

Here ma Services.yaml file:
# Configuration/Services.yaml
services:
_defaults:
autowire: true
autoconfigure: true
public: false
HGA\Simpleblog\:
resource: '../Classes/*'
exclude: '../Classes/Domain/Model/*'
HGA\Simpleblog\Utilities\SqlUtil:
public: true
And here the beginnig of the BlogsController.php file:
<?php
namespace HGA\Simpleblog\Controller;
use \Psr\Http\Message\ResponseInterface;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use TYPO3\CMS\Extbase\Http\ForwardResponse;
use TYPO3\CMS\Core\Core\Environment as Environment;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use HGA\Simpleblog\Utilities;
use HGA\Simpleblog\Utilities\SqlUtil;
use HGA\Simpleblog\Domain\Model;
use HGA\Simpleblog\Domain\Repository;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use TYPO3\CMS\Extbase\Annotation\Inject;
/***
*
* This file is part of the "SimpleBlog" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
***/
/**
* BlogsController
*/
class BlogsController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
/**
* @var SqlUtil $sqlUtil
*/
protected $sqlUtil;
public function __construct(SqlUtil $sqlUtil)
{
$this->sqlUtil = $sqlUtil;
}
In my opinion, the class BlogsController is included into the mentioned file.
The extension was working with an older version of Typo3. But I had to add the Services.yaml file.
I am not using composer! TYPO3 V11.5.8.
Any idea, what could be the problem?
EDIT
After a while, the problem disappeared! What I did in between, I had to updated the Windows Server 2019 operation system.
Solution 1:[1]
Does the filename is really BlogController.php but should be BlogsController.php.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Georg Ringer |
