diff --git a/friendsofsymfony/user-bundle/2.1/config/packages/fos_user.yaml b/friendsofsymfony/user-bundle/2.1/config/packages/fos_user.yaml new file mode 100644 index 000000000..b298e7785 --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/config/packages/fos_user.yaml @@ -0,0 +1,10 @@ +# Read the documentation: https://symfony.com/doc/master/bundles/FOSUserBundle/index.html +fos_user: + db_driver: orm # other valid values are 'mongodb' and 'couchdb' + firewall_name: main + user_class: AppBundle\Entity\User + service: + mailer: 'fos_user.mailer.noop' + from_email: + address: "%env(MAILER_SENDER_ADDRESS)%" + sender_name: "%env(MAILER_SENDER_NAME)%" diff --git a/friendsofsymfony/user-bundle/2.1/manifest.json b/friendsofsymfony/user-bundle/2.1/manifest.json new file mode 100644 index 000000000..483470cfb --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/manifest.json @@ -0,0 +1,12 @@ +{ + "bundles": { + "FOS\\UserBundle\\FOSUserBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "MAILER_SENDER_ADDRESS": "joh.doe@localhost.tld", + "MAILER_SENDER_NAME": "John Doe" + } +} diff --git a/friendsofsymfony/user-bundle/2.1/post-install.txt b/friendsofsymfony/user-bundle/2.1/post-install.txt new file mode 100644 index 000000000..652b3dfd8 --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/post-install.txt @@ -0,0 +1,34 @@ + + What\'s next? + + +Make sure the twig is installed and the twig engine is turned on +in framework.yaml + + * If not, install twig, then add the following to + config/packages/framework.yaml: + +framework: + # ... + templating: + engines: [\'twig\'] + +For sending e mails: + 1. Set MAILER_SENDER_ADDRESS and MAILER_SENDER_NAME in your .env file + 2. Configure the mailer service in config/packages/fos_user.yaml + + + Follow this steps in the Documentation + + +See https://symfony.com/doc/master/bundles/FOSUserBundle/index.html + + 1. Step 3: Create your User class + 2. Step 4: Configure your application\'s security.yml + (config/packages/security.yaml) + + 3. Step 6: Import FOSUserBundle routing files + (config/routes.yaml) + + 4. Step 7: Update your database schema +