Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8fbcab

Browse files
committed
Merge pull request symfony#402 from kbond/reference/config-update
[reference][config] updated configurations/added assetic config
2 parents 63d5c32 + c5d2c74 commit a8fbcab

File tree

8 files changed

+256
-88
lines changed

8 files changed

+256
-88
lines changed

reference/configuration/assetic.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.. index::
2+
pair: Assetic; Configuration Reference
3+
4+
AsseticBundle Configuration Reference
5+
=====================================
6+
7+
Full Default Configuration
8+
~~~~~~~~~~~~~~~~~~~~~~~~~~
9+
10+
.. configuration-block::
11+
12+
.. code-block:: yaml
13+
14+
assetic:
15+
debug: true
16+
use_controller: true
17+
read_from: %kernel.root_dir%/../web
18+
write_to: %assetic.read_from%
19+
java: /usr/bin/java
20+
node: /usr/bin/node
21+
sass: /usr/bin/sass
22+
bundles:
23+
24+
# Defaults (all currently registered bundles):
25+
- FrameworkBundle
26+
- SecurityBundle
27+
- TwigBundle
28+
- MonologBundle
29+
- SwiftmailerBundle
30+
- DoctrineBundle
31+
- AsseticBundle
32+
- ...
33+
34+
assets:
35+
36+
# Prototype
37+
name:
38+
inputs: []
39+
filters: []
40+
options:
41+
42+
# Prototype
43+
name: []
44+
filters:
45+
46+
# Prototype
47+
name: []
48+
twig:
49+
functions:
50+
51+
# Prototype
52+
name: []

reference/configuration/framework.rst

Lines changed: 67 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,80 +17,96 @@ Full Default Configuration
1717
.. code-block:: yaml
1818
1919
framework:
20+
2021
# general configuration
21-
charset: ~
22-
secret: ~ # Required
23-
exception_controller: Symfony\\Bundle\\FrameworkBundle\\Controller\\ExceptionController::showAction
24-
ide: ~
25-
test: ~
26-
22+
charset: ~
23+
secret: ~ # Required
24+
exception_controller: Symfony\Bundle\FrameworkBundle\Controller\ExceptionController::showAction
25+
ide: ~
26+
test: ~
27+
2728
# form configuration
2829
form:
29-
enabled: true
30+
enabled: true
3031
csrf_protection:
31-
enabled: true
32-
field_name: _token
33-
32+
enabled: true
33+
field_name: _token
34+
3435
# esi configuration
3536
esi:
36-
enabled: true
37-
37+
enabled: true
38+
3839
# profiler configuration
3940
profiler:
4041
only_exceptions: false
41-
only_master_requests: false
42-
dsn: sqlite:%kernel.cache_dir%/profiler.db
43-
username: ''
44-
password: ''
45-
lifetime: 86400
42+
only_master_requests: false
43+
dsn: sqlite:%kernel.cache_dir%/profiler.db
44+
username:
45+
password:
46+
lifetime: 86400
4647
matcher:
47-
ip: ~
48-
path: ~
49-
service: ~
48+
ip: ~
49+
path: ~
50+
service: ~
5051
5152
# router configuration
5253
router:
53-
resource: ~ # Required
54-
type: ~
55-
http_port: 80
56-
https_port: 443
54+
resource: ~ # Required
55+
type: ~
56+
http_port: 80
57+
https_port: 443
5758
5859
# session configuration
5960
session:
60-
auto_start: ~
61-
default_locale: en
62-
storage_id: session.storage.native
63-
name: ~
64-
lifetime: ~
65-
path: ~
66-
domain: ~
67-
secure: ~
68-
httponly: ~
61+
auto_start: ~
62+
default_locale: en
63+
storage_id: session.storage.native
64+
name: ~
65+
lifetime: ~
66+
path: ~
67+
domain: ~
68+
secure: ~
69+
httponly: ~
6970
7071
# templating configuration
7172
templating:
72-
assets_version: ~
73-
assets_base_urls: []
74-
cache: ~
75-
engines: [] # Required
76-
loaders: []
77-
packages: []
73+
assets_version: ~
74+
assets_version_format: ~
75+
assets_base_urls:
76+
http: []
77+
ssl: []
78+
cache: ~
79+
engines: # Required
80+
81+
# Example:
82+
- twig
83+
loaders: []
84+
packages:
85+
86+
# Prototype
87+
name:
88+
version: ~
89+
version_format: ~
90+
base_urls:
91+
http: []
92+
ssl: []
7893
7994
# translator configuration
8095
translator:
81-
enabled: true
82-
fallback: en
83-
96+
enabled: true
97+
fallback: en
98+
99+
# validation configuration
84100
validation:
85-
enabled: true
86-
cache: ~
87-
enable_annotations: false
88-
89-
# annotations configuration
90-
annotations:
91-
cache: file
92-
file_cache_dir: %kernel.cache_dir%/annotations
93-
debug: true
101+
enabled: true
102+
cache: ~
103+
enable_annotations: false
104+
105+
# annotation configuration
106+
annotations:
107+
cache: file
108+
file_cache_dir: %kernel.cache_dir%/annotations
109+
debug: true
94110
95111
General Configuration
96112
---------------------

reference/configuration/mongodb.rst

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,60 @@ And you can also retrieve the configured document manager services which utilize
220220
connection services::
221221

222222
$dm1 = $container->get('doctrine.odm.mongodb.dm1_document_manager');
223-
$dm2 = $container->get('doctrine.odm.mongodb.dm2_document_manager');
223+
$dm2 = $container->get('doctrine.odm.mongodb.dm2_document_manager');
224+
225+
Full Default Configuration
226+
~~~~~~~~~~~~~~~~~~~~~~~~~~
227+
228+
.. configuration-block::
229+
230+
.. code-block:: yaml
231+
232+
doctrine_mongodb:
233+
document_managers:
234+
235+
# Prototype
236+
id:
237+
connection: ~
238+
database: ~
239+
logging: true
240+
auto_mapping: false
241+
metadata_cache_driver:
242+
type: ~
243+
class: ~
244+
host: ~
245+
port: ~
246+
instance_class: ~
247+
mappings:
248+
249+
# Prototype
250+
name:
251+
mapping: true
252+
type: ~
253+
dir: ~
254+
prefix: ~
255+
alias: ~
256+
is_bundle: ~
257+
connections:
258+
259+
# Prototype
260+
id:
261+
server: ~
262+
options:
263+
connect: ~
264+
persist: ~
265+
timeout: ~
266+
replicaSet: ~
267+
username: ~
268+
password: ~
269+
proxy_namespace: Proxies
270+
proxy_dir: %kernel.cache_dir%/doctrine/odm/mongodb/Proxies
271+
auto_generate_proxy_classes: false
272+
hydrator_namespace: Hydrators
273+
hydrator_dir: %kernel.cache_dir%/doctrine/odm/mongodb/Hydrators
274+
auto_generate_hydrator_classes: false
275+
default_document_manager: ~
276+
default_connection: ~
277+
default_database: default
278+
279+

reference/configuration/monolog.rst

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,50 @@ Configuration Reference
1010
1111
monolog:
1212
handlers:
13+
14+
# Examples:
1315
syslog:
14-
type: stream
15-
path: /var/log/symfony.log
16-
level: error
17-
bubble: false
18-
formatter: my_formatter
16+
type: stream
17+
path: /var/log/symfony.log
18+
level: ERROR
19+
bubble: false
20+
formatter: my_formatter
1921
processors:
2022
- some_callable
2123
main:
22-
type: fingerscrossed
23-
action_level: warning
24-
buffer_size: 30
25-
handler: custom
24+
type: fingerscrossed
25+
action_level: WARNING
26+
buffer_size: 30
27+
handler: custom
2628
custom:
27-
type: service
28-
id: my_handler
29+
type: service
30+
id: my_handler
31+
32+
# Prototype
33+
name:
34+
type: ~ # Required
35+
id: ~
36+
priority: 0
37+
level: DEBUG
38+
bubble: true
39+
path: %kernel.logs_dir%/%kernel.environment%.log
40+
ident: false
41+
facility: user
42+
max_files: 0
43+
action_level: WARNING
44+
stop_buffering: true
45+
buffer_size: 0
46+
handler: ~
47+
members: []
48+
from_email: ~
49+
to_email: ~
50+
subject: ~
51+
email_prototype: ~
52+
formatter: ~
53+
processors: []
2954
processors:
55+
56+
# Example:
3057
- @my_processor
3158
3259
.. code-block:: xml

reference/configuration/swiftmailer.rst

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ Full Default Configuration
1212
.. code-block:: yaml
1313
1414
swiftmailer:
15-
transport: smtp
16-
username: ~
17-
password: ~
18-
host: localhost
19-
port: false
20-
encryption: ~
21-
auth_mode: ~
15+
transport: smtp
16+
username: ~
17+
password: ~
18+
host: localhost
19+
port: false
20+
encryption: ~
21+
auth_mode: ~
2222
spool:
23-
type: file
24-
path: %kernel.cache_dir%/swiftmailer/spool
25-
delivery_address: ~
26-
disable_delivery: ~
27-
logging: true
23+
type: file
24+
path: %kernel.cache_dir%/swiftmailer/spool
25+
sender_address: ~
26+
antiflood:
27+
threshold: 99
28+
sleep: 0
29+
delivery_address: ~
30+
disable_delivery: ~
31+
logging: true

0 commit comments

Comments
 (0)