@@ -70,7 +70,9 @@ Please first set the database credentials in `Configuration/parameters.yml`.
70
70
For running the application in development mode using the built-in PHP server,
71
71
use this command:
72
72
73
- bin/console server:run -d web/
73
+ ``` bash
74
+ bin/console server:run -d web/
75
+ ```
74
76
75
77
The server will then listen on ` http://127.0.0.1:8000 ` (or, if port 8000 is
76
78
already in use, on the next free port after 8000).
@@ -82,7 +84,9 @@ You can stop the server with CTRL + C.
82
84
To run the server in testing mode (which normally will only be needed for the
83
85
automated tests, provide the ` --env ` option:
84
86
85
- bin/console server:run -d web/ --env=test
87
+ ``` bash
88
+ bin/console server:run -d web/ --env=test
89
+ ```
86
90
87
91
### Production
88
92
@@ -110,7 +114,7 @@ have the type `phplist-module`.
110
114
If your module provides any Symfony bundles, the bundle class names need to be
111
115
listed in the ` extra ` section of the module's ` composer.json ` like this:
112
116
113
- ````
117
+ ``` json
114
118
"extra" : {
115
119
"phplist/phplist4-core" : {
116
120
"bundles" : [
@@ -119,7 +123,7 @@ listed in the `extra` section of the module's `composer.json` like this:
119
123
]
120
124
}
121
125
}
122
- ````
126
+ ```
123
127
124
128
Please note that the key of the section with ` extra ` needs to always be
125
129
` phplist/phplist4-core ` , not the name of your module package. Please have a
@@ -130,7 +134,7 @@ for an example.
130
134
Similarly, if your module provides any routes, those also need to be listed in
131
135
the ` extra ` section of the module's ` composer.json ` like this:
132
136
133
- ````
137
+ ``` json
134
138
"extra" : {
135
139
"phplist/phplist4-core" : {
136
140
"routes" : {
@@ -141,11 +145,11 @@ the `extra` section of the module's `composer.json` like this:
141
145
}
142
146
}
143
147
}
144
- ````
148
+ ```
145
149
146
150
You can also provide system configuration for your module:
147
151
148
- ````
152
+ ``` json
149
153
"extra" : {
150
154
"phplist/phplist4-core" : {
151
155
"configuration" : {
@@ -159,7 +163,7 @@ You can also provide system configuration for your module:
159
163
}
160
164
}
161
165
}
162
- ````
166
+ ```
163
167
164
168
It is recommended to define the routes using
165
169
[ annotations] ( https://symfony.com/doc/current/routing.html#routing-examples )
@@ -194,4 +198,4 @@ phpList module), please use the
194
198
195
199
## Copyright
196
200
197
- phpList is copyright (C) 2000-2017 [ phpList Ltd] ( https://www.phplist.com/ ) .
201
+ phpList is copyright (C) 2000-2018 [ phpList Ltd] ( https://www.phplist.com/ ) .
0 commit comments