在我的 Symfony2 config.yml 文件中,我想导入一些我希望收集在单独的 yml 文件中的配置。
我用了:
imports:
- { resource: parameters.yml }
- { resource: sso_accounts.yml }
在我的 sso_accounts.yml 文件中,我基本上有:
sso_accounts:
company:
publickey: publickey
secret: privatekey
users: [ user1@email.com, user2@email.com ]
但是(总是有一个但是......)我收到了这个错误:
Whoops, looks like something went wrong.
2/2 FileLoaderLoadException: Cannot import resource "/Users/mycomp/Sites/myapp/app/config/sso_accounts.yml" from "/Users/mycomp/Sites/myapp/app/config/config.yml".
1/2 InvalidArgumentException: There is no extension able to load the configuration for "sso_accounts" (in /Users/mycomp/Sites/myapp/app/config/sso_accounts.yml). Looked for namespace "sso_accounts", found "framework", "security", "twig", "monolog", "swiftmailer", "doctrine", "assetic", "sensio_framework_extra", "jms_security_extra", "problematic_acl_manager", "twig_js", "fos_js_routing"
我的导入有什么问题?