如何为使用注释的自定义学说插件添加 YAML 配置选项
How to add YAML config option for a custom doctrine plugin that uses Annotations
插件:https://github.com/vmelnik-ukraine/DoctrineEncryptBundle
示例中使用了注释 @Encrypted
。
问题是在我当前的项目中使用了 yaml 配置文件。
我试过添加 encrypted:
和 encrypted: true
。但是都失败了。
请指教=)
我认为这不可能。此包 relies on Annotation 用于其配置,因此您必须使用而不是 YAML。
您不必将所有配置更改为注释,只需添加 @Encrypted
.
插件:https://github.com/vmelnik-ukraine/DoctrineEncryptBundle
示例中使用了注释 @Encrypted
。
问题是在我当前的项目中使用了 yaml 配置文件。
我试过添加 encrypted:
和 encrypted: true
。但是都失败了。
请指教=)
我认为这不可能。此包 relies on Annotation 用于其配置,因此您必须使用而不是 YAML。
您不必将所有配置更改为注释,只需添加 @Encrypted
.