Skip to content

Commit 9bd9382

Browse files
committed
use no_driver parameter and modify post-install.txt
1 parent 176e34b commit 9bd9382

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
fos_user:
2-
db_driver: orm
2+
db_driver: no_driver # valid values are 'orm', 'mongodb' and 'couchdb'
3+
user_class: App\Entity\User
4+
firewall_name: main
35
service:
46
mailer: fos_user.mailer.noop
5-
firewall_name: main
6-
user_class: App\Entity\User
77
from_email:
8-
address: "address"
9-
sender_name: "name"
8+
address: "%env(MAILER_SENDER_ADDRESS)%"
9+
sender_name: "%env(MAILER_SENDER_NAME)%"
10+

friendsofsymfony/user-bundle/2.1/manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55
"copy-from-recipe": {
66
"config/": "%CONFIG_DIR%/",
77
"src/": "%SRC_DIR%/"
8+
},
9+
"env": {
10+
"MAILER_SENDER_ADDRESS": "joh.doe@example.com",
11+
"MAILER_SENDER_NAME": "John Doe"
812
}
913
}

friendsofsymfony/user-bundle/2.1/post-install.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
<bg=blue;fg=white> What's next? </>
33
<bg=blue;fg=white> </>
44

5-
Warning: make sure the twig engine is turned on in framework.yaml
5+
- If not, install a driver storage and change it in <fg=green>config/packages/fos_user.yaml</>
66

7-
- Modify your email address config in <fg=green>config/packages/fos_user.yaml</>
7+
- Modify your email address config in <fg=green>.env</>
88

9-
- If not, add the following to <fg=green>config/packages/framework.yaml</>:
9+
- Uncomment <fg=green>csrf_protection</> and make sure <fg=green>twig engine</> is turned on by adding in <fg=green>config/packages/framework.yaml</>:
1010

1111
framework:
1212
# ...
13-
csrf_protection: { enabled: true }
13+
csrf_protection: true
1414
templating:
1515
engines: ['twig']
1616

17+
- Create your User class
18+
https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#step-3-create-your-user-class
19+
1720
- Modify your security configuration in <fg=green>config/packages/security.yaml</>
18-
https://symfony.com/doc/2.0/bundles/FOSUserBundle/index.html#step-4-configure-your-application-s-security-yml
21+
https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#step-4-configure-your-application-s-security-yml

0 commit comments

Comments
 (0)