Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 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
from_email:
address: "%env(MAILER_SENDER_ADDRESS)%"
sender_name: "%env(MAILER_SENDER_NAME)%"
12 changes: 12 additions & 0 deletions friendsofsymfony/user-bundle/2.1/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
31 changes: 31 additions & 0 deletions friendsofsymfony/user-bundle/2.1/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> What\'s next? </>
<bg=blue;fg=white> </>

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\']

<fg=yellow>Set MAILER_SENDER_ADDRESS and MAILER_SENDER_NAME in your .env file</>

<bg=blue;fg=white> </>
<bg=blue;fg=white> Follow this steps in the Documentation </>
<bg=blue;fg=white> </>

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