config.yml
4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
- { resource: "@UBVSurUbvBundle/Resources/config/services.yml" }
- { resource: "@UBVAutenticacionBundle/Resources/config/services.xml" }
# Put parameters here that don't need to change on each machine where the app is deployed
# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: es
security:
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_email
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: ^/$, role: ROLE_USER }
#- { path: ^/aspirante$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/aspirante/listar_documentos/, role: ROLE_USER }
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register/check-email, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register/confirm, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register/confirmed, role: ROLE_USER }
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
#- { path: ^/register, role: ROLE_METHOD, method:[GET] }
- { path: ^/profile, role: ROLE_USER }
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin/, role: ROLE_ADMIN }
framework:
#esi:
translator: ~
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: ~
form: ~
csrf_protection: ~
validation: { enable_annotations: true }
#serializer: { enable_annotations: true }
templating:
engines: ['twig']
default_locale: "%locale%"
trusted_hosts: ~
trusted_proxies: ~
session:
# handler_id set to null will use default session handler from php.ini
handler_id: ~
fragments: ~
http_method_override: true
# Twig Configuration
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
fos_user:
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
firewall_name: main
user_class: UBV\SurUbvBundle\Entity\Persona
from_email:
address: confirmacion@surubv.edu.ve
sender_name: Administrador
service:
mailer: ubv_user.mailer.twig_swift
group:
group_class: UBV\SurUbvBundle\Entity\Grupo
registration:
confirmation:
enabled: true
from_email:
address: confirmacion@surubv.edu.ve
sender_name: Administrador
template: :Email:prueba.html.twig
form:
type: UBV\AutenticacionBundle\Form\Type\RegistrationType
name: fos_user_registration_form
validation_groups: [Registration, Default]
# Doctrine Configuration
doctrine:
dbal:
driver: pdo_pgsql
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
orm:
auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true
# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
username: "%mailer_user%"
password: "%mailer_password%"
spool: { type: memory }
# app/config/config.yml
genemu_form:
autocomplete: ~