Php 如何在Sonata中为用户设置默认化身?
我想知道如何为用户添加一个默认的头像,我在文档中搜索,但我不知道在哪里添加一行默认的头像。我在sonata_user.yml中尝试过,但没有成功。根据页面,值的键是:Php 如何在Sonata中为用户设置默认化身?,php,symfony,php-7,sonata,Php,Symfony,Php 7,Sonata,我想知道如何为用户添加一个默认的头像,我在文档中搜索,但我不知道在哪里添加一行默认的头像。我在sonata_user.yml中尝试过,但没有成功。根据页面,值的键是: sonata_user: profile: # Default avatar displayed if user doesn't have one default_avatar: 'bundles/sonatauser/default_avatar.png' config.yml文件中的
sonata_user:
profile:
# Default avatar displayed if user doesn't have one
default_avatar: 'bundles/sonatauser/default_avatar.png'
config.yml文件中的sonata_user:
configuration键(或最终包含在其中的文件)下和周围将有更多配置