代码之家  ›  专栏  ›  技术社区  ›  Andrei Herford

有没有办法在Symfony配置中找到~?

  •  0
  • Andrei Herford  · 技术社区  · 7 年前

    我知道 ~ Symfony配置文件中的值表示 null default :

    framework:
        router:
            strict_requirements: ~
    

    但是有没有办法找出这个默认值到底是什么呢?例如 strict_requirements 属性设置为 %kernel.debug% 在使用Symfony 2.8创建的项目中。新symfony3.4项目的框架将其定义为 ~ .

    如果知道 默认为 ...

    1 回复  |  直到 7 年前
        1
  •  2
  •   G1.3    7 年前

    有一个显示默认配置值的命令行:

    php bin/console config:dump-reference framework
    

    php bin/console debug:config framework