我最近一次弃用3.4-> SF4.0。弃用内容为:
“ web_profiler.position”配置密钥已在Symfony 3.4中弃用,并将在4.0中删除。
我在Google或Stack上找不到有关如何解决此问题的任何文章。我能从Fabien找到的最接近的文章中提到了弃用:
Symfony 3.4 curated new features
但是没有提及如何解决这些弃用问题:/
我发现了生成错误的代码部分:Symfony \ Component \ Config \ Definition \ ArrayNode.php(L238):
/**
* Finalizes the value of this node.
*
* @param mixed $value
*
* @return mixed The finalised value
*
* @throws UnsetKeyException
* @throws InvalidConfigurationException if the node doesn't have enough children
*/
protected function finalizeValue($value)
{
if (false === $value) {
throw new UnsetKeyException(sprintf('Unsetting key for path "%s", value: "%s".', $this->getPath(), json_encode($value)));
}
foreach ($this->children as $name => $child) {
if (!\array_key_exists($name, $value)) {
if ($child->isRequired()) {
$ex = new InvalidConfigurationException(sprintf('The child node "%s" at path "%s" must be configured.', $name, $this->getPath()));
$ex->setPath($this->getPath());
throw $ex;
}
if ($child->hasDefaultValue()) {
$value[$name] = $child->getDefaultValue();
}
continue;
}
if ($child->isDeprecated()) {
@trigger_error($child->getDeprecationMessage($name, $this->getPath()), E_USER_DEPRECATED);
}
try {
$value[$name] = $child->finalize($value[$name]);
} catch (UnsetKeyException $e) {
unset($value[$name]);
}
}
return $value;
}
[如果您能提供帮助,谢谢。
解决了。这是一个配置设置。
设置:
web_profiler:
position: bottom