处理异常时抛出的异常(Symfony \ Component \ Config \ Exception \ FileLoaderLoadException:

时间:2018-12-23 16:57:07

标签: symfony

为什么在 routing.yml 文件中添加缩进会产生错误?

app:
    resource: '@AppBundle/Controller/'
    type: annotation

////////////////////////////////////////////// < / p>

(7/7) Twig_Error_Runtime
    An exception has been thrown during the rendering of a template 
("The file "C:\OSPanel\domains\symfony/app/config\routing.yml" 
does not contain valid YAML in 
C:\OSPanel\domains\symfony/app/config\routing.yml 
(which is being imported from 
"C:\OSPanel\domains\symfony/app/config/routing_dev.yml").").

1 个答案:

答案 0 :(得分:0)

YAML具有严格的syntax,任何小错误都会导致错误。错误文本绝对清晰@net_ldap.rename( olddn:"CN=TestAMS\\,Henry,OU=Flemington,OU=NJ Region 4,OU=Agents,DC=nj,DC=tri,DC=nrt", newrdn:"CN=#TestAMS,Henry", delete_attributes:true, new_superior:"OU=Terminated Accounts,OU=No Sync,DC=nj,DC=tri,DC=nrt" ) 。不允许制表符缩进。