в течение дня, я пытаюсь решить эту проблему в моем проекте Symfony.
Из-за этого я не могу получить доступ к серверной части моего веб-приложения и выдает следующую ошибку: «Не удалось выполнить запрос аутентификации из-за системной проблемы».
Профилировщик, предлагающий это сообщение:
A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.
Show context Hide trace
{▼
root_path\vendor\symfony\config\Definition\Builder\TreeBuilder.php:30 {▶}
root_path\vendor\friendsofsymfony\user-bundle\DependencyInjection\Configuration.php:34 {▼
› {
› "in () on line 34"
› $treeBuilder = new TreeBuilder('fos_user');
}
}
После дня исследований внес изменения в мой "vendor \ friendsofsymfony \ user-bundle \ DependencyInjection \ Configuration.php" и, наконец, установил это, но без изменений:
<?php
/*
* This file is part of the FOSUserBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\UserBundle\DependencyInjection;
use FOS\UserBundle\Form\Type;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This class contains the configuration information for the bundle.
*
* This information is solely responsible for how the different configuration
* sections are normalized, and merged.
*
* @author Christophe Coevoet <stof@notk.org>
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder('fos_user');
$rootNode = $treeBuilder->getRootNode();
$supportedDrivers = array('orm', 'mongodb', 'couchdb', 'custom');
$rootNode
->children()........
Я использую FOSUSERBUNDLE для входа в систему.
Будем рады прочитать решения и советы, которые помогут мне решить эту проблему.
Привет