TYPO3 Symfony Services.yaml class not find

snvhrwxg  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(129)

我正在尝试更新Typo 3 V11的旧扩展。目前我收到以下错误:

下面是我的Services.yaml文件:

# 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

这里是BlogsController.php文件的配置:

<?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;
    }

在我看来,BlogsController类包含在提到的文件中。该扩展适用于旧版本的Typo 3。但我必须添加Services.yaml文件。
我没有使用composer!TYPO 3 V11.5.8。
有什么想法吗,可能是什么问题?

编辑

过了一段时间,问题消失了!我在其间做了什么,我不得不更新Windows Server 2019操作系统。

guicsvcw

guicsvcw1#

文件名真的是BlogController.php吗?不应该是BlogsController.php吗?

相关问题