Tengo un problema cuando instalo FOsuserbundle. Este es mi problema en el resultado:

este es mi config.yml:
fos_user: db_driver: orm # other valid values are 'mongodb' and 'couchdb' firewall_name: main user_class: AppBundle\Entity\User from_email: address: "%mailer_user%" sender_name: "%mailer_user%"seguridad:
# http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded providers: in_memory: memory: ~ firewalls: # disables authentication for assets and the profiler, adapt it according to your needs dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: ~ # activate different ways to authenticate # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate #http_basic: ~ # http://symfony.com/doc/current/cookbook/security/form_login_setup.html #form_login: ~ encoders: FOS\UserBundle\Model\UserInterface: bcrypt role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: ROLE_ADMIN providers: fos_userbundle: id: fos_user.user_provider.username firewalls: main: pattern: ^/ form_login: provider: fos_userbundle csrf_token_generator: security.csrf.token_manager # if you are using Symfony < 2.8, use the following config instead: # csrf_provider: form.csrf_provider logout: true anonymous: true access_control: - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin/, role: ROLE_ADMIN }y este es mi enrutamiento.yml:
fos_user: recurso: "@FOSUserBundle/Resources/config/routing/all.xml"
El problema es con su archivo de parámetros.yml:
parameters: ... mailer_user: null mailer_password: nullCambie eso a algo, entonces no obtendrá el error.
El FOSUserBundle tiene soporte incorporado para enviar correos electrónicos en dos instancias diferentes.
Estos valores no pueden ser nulos, por lo que si intenta establecer el valor de estas propiedades con "" o ~, el problema persistirá. Proporcione valores que no sean nulos. Funcionará.
# /app/config.yml fos_user: from_email: address: "testapp@testapp.com" sender_name: "Test App"