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..e84b2d982 --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/config/packages/fos_user.yaml @@ -0,0 +1,10 @@ +fos_user: + db_driver: no_driver # valid values are 'orm', 'mongodb' and 'couchdb' + user_class: App\Entity\User + firewall_name: main + 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/config/routes/fos_user.yaml b/friendsofsymfony/user-bundle/2.1/config/routes/fos_user.yaml new file mode 100644 index 000000000..e9c0b0bae --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/config/routes/fos_user.yaml @@ -0,0 +1,18 @@ +fos_user_security: + resource: "@FOSUserBundle/Resources/config/routing/security.xml" + +fos_user_profile: + resource: "@FOSUserBundle/Resources/config/routing/profile.xml" + prefix: /profile + +fos_user_register: + resource: "@FOSUserBundle/Resources/config/routing/registration.xml" + prefix: /register + +fos_user_resetting: + resource: "@FOSUserBundle/Resources/config/routing/resetting.xml" + prefix: /resetting + +fos_user_change_password: + resource: "@FOSUserBundle/Resources/config/routing/change_password.xml" + prefix: /profile diff --git a/friendsofsymfony/user-bundle/2.1/manifest.json b/friendsofsymfony/user-bundle/2.1/manifest.json new file mode 100644 index 000000000..9e49b131d --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "FOS\\UserBundle\\FOSUserBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + }, + "env": { + "MAILER_SENDER_ADDRESS": "joh.doe@example.com", + "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..55f3e31ca --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/post-install.txt @@ -0,0 +1,21 @@ + + What's next? + + + - If not, install a driver storage and change it in config/packages/fos_user.yaml + + - Modify your email address config in .env + + - Uncomment csrf_protection and make sure twig engine is turned on by adding in config/packages/framework.yaml: + +framework: + # ... + csrf_protection: true + templating: + engines: ['twig'] + + - Create your User class + https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#step-3-create-your-user-class + + - Modify your security configuration in config/packages/security.yaml + https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#step-4-configure-your-application-s-security-yml diff --git a/friendsofsymfony/user-bundle/2.1/src/Entity/User.php b/friendsofsymfony/user-bundle/2.1/src/Entity/User.php new file mode 100644 index 000000000..68b3254bf --- /dev/null +++ b/friendsofsymfony/user-bundle/2.1/src/Entity/User.php @@ -0,0 +1,26 @@ +