├── .docker
├── apache
│ └── Dockerfile
├── config
│ └── vhosts
│ │ └── sf4.conf
└── php
│ ├── Dockerfile
│ ├── php-fpm-pool.conf
│ └── php.ini
├── .env.dist
├── .gitignore
├── bin
└── console
├── composer.json
├── composer.lock
├── config
├── bundles.php
├── packages
│ ├── dev
│ │ └── routing.yaml
│ ├── framework.yaml
│ ├── routing.yaml
│ └── test
│ │ ├── framework.yaml
│ │ └── routing.yaml
├── routes.yaml
└── services.yaml
├── docker-compose.yml
├── public
└── index.php
├── src
├── Controller
│ └── .gitignore
└── Kernel.php
└── symfony.lock
/.docker/apache/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM debian:stretch
2 |
3 | ENV HTTPD_PREFIX /usr/local/apache2
4 | ENV PATH $HTTPD_PREFIX/bin:$PATH
5 | RUN mkdir -p "$HTTPD_PREFIX" \
6 | && chown www-data:www-data "$HTTPD_PREFIX"
7 | WORKDIR $HTTPD_PREFIX
8 |
9 | RUN apt-get update \
10 | && apt-get install -y --no-install-recommends \
11 | apache2 curl \
12 | && rm -r /var/lib/apt/lists/*
13 | RUN a2enmod proxy_fcgi ssl rewrite proxy proxy_balancer proxy_http proxy_ajp
14 | RUN sed -i '/Global configuration/a \
15 | ServerName localhost \
16 | ' /etc/apache2/apache2.conf
17 | EXPOSE 80 443
18 | RUN rm -f /run/apache2/apache2.pid
19 | CMD apachectl -DFOREGROUND -e info
20 |
--------------------------------------------------------------------------------
/.docker/config/vhosts/sf4.conf:
--------------------------------------------------------------------------------
1 |
2 |
3 | Define server_name sf4.local
4 | Define basedocroot /home/wwwroot/sf4
5 | Define docrootweb ${basedocroot}/public
6 | Define logdir /var/log/apache2/
7 |
8 |
9 | SetHandler "proxy:fcgi://sf4_php:9000"
10 |
11 |
12 | ServerName ${server_name}
13 | DocumentRoot ${docrootweb}
14 | ErrorLog ${logdir}/error.log
15 | CustomLog ${logdir}/access.log Combined
16 |
17 | RewriteEngine On
18 | RewriteCond %{HTTP:Authorization} ^(.*)
19 | RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
20 |
21 |
22 | AllowOverride All
23 | Require all granted
24 |
25 |
26 |
27 |
28 | Require all denied
29 |
30 |
31 | Order deny,allow
32 | Deny from all
33 |
34 |
35 |
36 |
37 | DirectoryIndex ${docrootweb}/index.php
38 |
39 | Options -MultiViews
40 |
41 |
42 |
43 | RewriteEngine On
44 | RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
45 | RewriteRule ^(.*) - [E=BASE:%1]
46 |
47 | RewriteCond %{HTTP:Authorization} .
48 | RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
49 |
50 | RewriteCond %{ENV:REDIRECT_STATUS} ^$
51 | RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
52 |
53 | RewriteCond %{REQUEST_FILENAME} -f
54 | RewriteRule ^ - [L]
55 |
56 | RewriteRule ^ %{ENV:BASE}/index.php [L]
57 |
58 |
59 |
60 |
61 | RedirectMatch 302 ^/$ /index.php/
62 |
63 |
64 |
65 |
66 | Undefine server_name
67 | Undefine basedocroot
68 | Undefine docrootweb
69 | Undefine logdir
70 |
71 |
--------------------------------------------------------------------------------
/.docker/php/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM php:7.2.10-fpm
2 |
3 | RUN apt-get update \
4 | && apt-get install -y --no-install-recommends vim curl debconf subversion git apt-transport-https apt-utils \
5 | build-essential locales acl mailutils wget nodejs zip unzip \
6 | gnupg gnupg1 gnupg2 \
7 | zlib1g-dev \
8 | sudo
9 |
10 | RUN docker-php-ext-install pdo pdo_mysql zip
11 |
12 | COPY php.ini /usr/local/etc/php/php.ini
13 | COPY php-fpm-pool.conf /usr/local/etc/php/pool.d/www.conf
14 |
15 | RUN curl -sSk https://getcomposer.org/installer | php -- --disable-tls && \
16 | mv composer.phar /usr/local/bin/composer
17 |
18 | RUN wget --no-check-certificate https://phar.phpunit.de/phpunit-6.5.3.phar && \
19 | mv phpunit*.phar phpunit.phar && \
20 | chmod +x phpunit.phar && \
21 | mv phpunit.phar /usr/local/bin/phpunit
22 |
23 | RUN echo "deb https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodejs.list && \
24 | wget -nv -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
25 | echo "deb-src https://deb.nodesource.com/node_6.x jessie main" >> /etc/apt/sources.list.d/nodejs.list && \
26 | apt-get update && \
27 | apt-get install -y --force-yes nodejs && \
28 | rm -f /etc/apt/sources.list.d/nodejs.list
29 |
30 | RUN groupadd dev -g 999
31 | RUN useradd dev -g dev -d /home/dev -m
32 | RUN passwd -d dev
33 |
34 | RUN rm -rf /var/lib/apt/lists/*
35 | RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
36 | echo "fr_FR.UTF-8 UTF-8" >> /etc/locale.gen && \
37 | locale-gen
38 |
39 | RUN echo "dev ALL=(ALL) ALL" > /etc/sudoers
40 |
41 | WORKDIR /home/wwwroot/
42 | ####
43 |
44 | EXPOSE 9000
45 | CMD ["php-fpm"]
46 |
--------------------------------------------------------------------------------
/.docker/php/php-fpm-pool.conf:
--------------------------------------------------------------------------------
1 | ; Start a new pool named 'www'.
2 | ; the variable $pool can we used in any directive and will be replaced by the
3 | ; pool name ('www' here)
4 | [www]
5 |
6 | ; Per pool prefix
7 | ; It only applies on the following directives:
8 | ; - 'access.log'
9 | ; - 'slowlog'
10 | ; - 'listen' (unixsocket)
11 | ; - 'chroot'
12 | ; - 'chdir'
13 | ; - 'php_values'
14 | ; - 'php_admin_values'
15 | ; When not set, the global prefix (or /usr) applies instead.
16 | ; Note: This directive can also be relative to the global prefix.
17 | ; Default Value: none
18 | ;prefix = /path/to/pools/$pool
19 |
20 | ; Unix user/group of processes
21 | ; Note: The user is mandatory. If the group is not set, the default user's group
22 | ; will be used.
23 | user = www-data
24 | group = www-data
25 |
26 | ; The address on which to accept FastCGI requests.
27 | ; Valid syntaxes are:
28 | ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
29 | ; a specific port;
30 | ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
31 | ; a specific port;
32 | ; 'port' - to listen on a TCP socket to all IPv4 addresses on a
33 | ; specific port;
34 | ; '[::]:port' - to listen on a TCP socket to all addresses
35 | ; (IPv6 and IPv4-mapped) on a specific port;
36 | ; '/path/to/unix/socket' - to listen on a unix socket.
37 | ; Note: This value is mandatory.
38 | ;listen = /var/run/php5-fpm.sock
39 | listen = 0.0.0.0:9000
40 |
41 | ; Set listen(2) backlog.
42 | ; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
43 | listen.backlog = 1023
44 |
45 | ; Set permissions for unix socket, if one is used. In Linux, read/write
46 | ; permissions must be set in order to allow connections from a web server. Many
47 | ; BSD-derived systems allow connections regardless of permissions.
48 | ; Default Values: user and group are set as the running user
49 | ; mode is set to 0660
50 | ;listen.owner = www-data
51 | ;listen.group = www-data
52 | ;listen.mode = 0660
53 | ; When POSIX Access Control Lists are supported you can set them using
54 | ; these options, value is a comma separated list of user/group names.
55 | ; When set, listen.owner and listen.group are ignored
56 | ;listen.acl_users =
57 | ;listen.acl_groups =
58 |
59 | ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
60 | ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
61 | ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
62 | ; must be separated by a comma. If this value is left blank, connections will be
63 | ; accepted from any ip address.
64 | ; Default Value: any
65 | ;listen.allowed_clients = 0.0.0.0
66 |
67 | ; Specify the nice(2) priority to apply to the pool processes (only if set)
68 | ; The value can vary from -19 (highest priority) to 20 (lower priority)
69 | ; Note: - It will only work if the FPM master process is launched as root
70 | ; - The pool processes will inherit the master process priority
71 | ; unless it specified otherwise
72 | ; Default Value: no set
73 | ; process.priority = -19
74 |
75 | ; Choose how the process manager will control the number of child processes.
76 | ; Possible Values:
77 | ; static - a fixed number (pm.max_children) of child processes;
78 | ; dynamic - the number of child processes are set dynamically based on the
79 | ; following directives. With this process management, there will be
80 | ; always at least 1 children.
81 | ; pm.max_children - the maximum number of children that can
82 | ; be alive at the same time.
83 | ; pm.start_servers - the number of children created on startup.
84 | ; pm.min_spare_servers - the minimum number of children in 'idle'
85 | ; state (waiting to process). If the number
86 | ; of 'idle' processes is less than this
87 | ; number then some children will be created.
88 | ; pm.max_spare_servers - the maximum number of children in 'idle'
89 | ; state (waiting to process). If the number
90 | ; of 'idle' processes is greater than this
91 | ; number then some children will be killed.
92 | ; ondemand - no children are created at startup. Children will be forked when
93 | ; new requests will connect. The following parameter are used:
94 | ; pm.max_children - the maximum number of children that
95 | ; can be alive at the same time.
96 | ; pm.process_idle_timeout - The number of seconds after which
97 | ; an idle process will be killed.
98 | ; Note: This value is mandatory.
99 | pm = dynamic
100 |
101 | ; The number of child processes to be created when pm is set to 'static' and the
102 | ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
103 | ; This value sets the limit on the number of simultaneous requests that will be
104 | ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
105 | ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
106 | ; CGI. The below defaults are based on a server without much resources. Don't
107 | ; forget to tweak pm.* to fit your needs.
108 | ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
109 | ; Note: This value is mandatory.
110 | pm.max_children = 8
111 |
112 | ; The number of child processes created on startup.
113 | ; Note: Used only when pm is set to 'dynamic'
114 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
115 | pm.start_servers = 2
116 |
117 | ; The desired minimum number of idle server processes.
118 | ; Note: Used only when pm is set to 'dynamic'
119 | ; Note: Mandatory when pm is set to 'dynamic'
120 | pm.min_spare_servers = 1
121 |
122 | ; The desired maximum number of idle server processes.
123 | ; Note: Used only when pm is set to 'dynamic'
124 | ; Note: Mandatory when pm is set to 'dynamic'
125 | pm.max_spare_servers = 3
126 |
127 | ; The number of seconds after which an idle process will be killed.
128 | ; Note: Used only when pm is set to 'ondemand'
129 | ; Default Value: 10s
130 | ;pm.process_idle_timeout = 10s;
131 |
132 | ; The number of requests each child process should execute before respawning.
133 | ; This can be useful to work around memory leaks in 3rd party libraries. For
134 | ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
135 | ; Default Value: 0
136 | ;pm.max_requests = 500
137 |
138 | ; The URI to view the FPM status page. If this value is not set, no URI will be
139 | ; recognized as a status page. It shows the following informations:
140 | ; pool - the name of the pool;
141 | ; process manager - static, dynamic or ondemand;
142 | ; start time - the date and time FPM has started;
143 | ; start since - number of seconds since FPM has started;
144 | ; accepted conn - the number of request accepted by the pool;
145 | ; listen queue - the number of request in the queue of pending
146 | ; connections (see backlog in listen(2));
147 | ; max listen queue - the maximum number of requests in the queue
148 | ; of pending connections since FPM has started;
149 | ; listen queue len - the size of the socket queue of pending connections;
150 | ; idle processes - the number of idle processes;
151 | ; active processes - the number of active processes;
152 | ; total processes - the number of idle + active processes;
153 | ; max active processes - the maximum number of active processes since FPM
154 | ; has started;
155 | ; max children reached - number of times, the process limit has been reached,
156 | ; when pm tries to start more children (works only for
157 | ; pm 'dynamic' and 'ondemand');
158 | ; Value are updated in real time.
159 | ; Example output:
160 | ; pool: www
161 | ; process manager: static
162 | ; start time: 01/Jul/2011:17:53:49 +0200
163 | ; start since: 62636
164 | ; accepted conn: 190460
165 | ; listen queue: 0
166 | ; max listen queue: 1
167 | ; listen queue len: 42
168 | ; idle processes: 4
169 | ; active processes: 11
170 | ; total processes: 15
171 | ; max active processes: 12
172 | ; max children reached: 0
173 | ;
174 | ; By default the status page output is formatted as text/plain. Passing either
175 | ; 'html', 'xml' or 'json' in the query string will return the corresponding
176 | ; output syntax. Example:
177 | ; http://www.foo.bar/status
178 | ; http://www.foo.bar/status?json
179 | ; http://www.foo.bar/status?html
180 | ; http://www.foo.bar/status?xml
181 | ;
182 | ; By default the status page only outputs short status. Passing 'full' in the
183 | ; query string will also return status for each pool process.
184 | ; Example:
185 | ; http://www.foo.bar/status?full
186 | ; http://www.foo.bar/status?json&full
187 | ; http://www.foo.bar/status?html&full
188 | ; http://www.foo.bar/status?xml&full
189 | ; The Full status returns for each process:
190 | ; pid - the PID of the process;
191 | ; state - the state of the process (Idle, Running, ...);
192 | ; start time - the date and time the process has started;
193 | ; start since - the number of seconds since the process has started;
194 | ; requests - the number of requests the process has served;
195 | ; request duration - the duration in µs of the requests;
196 | ; request method - the request method (GET, POST, ...);
197 | ; request URI - the request URI with the query string;
198 | ; content length - the content length of the request (only with POST);
199 | ; user - the user (PHP_AUTH_USER) (or '-' if not set);
200 | ; script - the main script called (or '-' if not set);
201 | ; last request cpu - the %cpu the last request consumed
202 | ; it's always 0 if the process is not in Idle state
203 | ; because CPU calculation is done when the request
204 | ; processing has terminated;
205 | ; last request memory - the max amount of memory the last request consumed
206 | ; it's always 0 if the process is not in Idle state
207 | ; because memory calculation is done when the request
208 | ; processing has terminated;
209 | ; If the process is in Idle state, then informations are related to the
210 | ; last request the process has served. Otherwise informations are related to
211 | ; the current request being served.
212 | ; Example output:
213 | ; ************************
214 | ; pid: 31330
215 | ; state: Running
216 | ; start time: 01/Jul/2011:17:53:49 +0200
217 | ; start since: 63087
218 | ; requests: 12808
219 | ; request duration: 1250261
220 | ; request method: GET
221 | ; request URI: /test_mem.php?N=10000
222 | ; content length: 0
223 | ; user: -
224 | ; script: /home/fat/web/docs/php/test_mem.php
225 | ; last request cpu: 0.00
226 | ; last request memory: 0
227 | ;
228 | ; Note: There is a real-time FPM status monitoring sample web page available
229 | ; It's available in: /usr/share/php5/fpm/status.html
230 | ;
231 | ; Note: The value must start with a leading slash (/). The value can be
232 | ; anything, but it may not be a good idea to use the .php extension or it
233 | ; may conflict with a real PHP file.
234 | ; Default Value: not set
235 | pm.status_path = /php-fpm-status
236 |
237 | ; The ping URI to call the monitoring page of FPM. If this value is not set, no
238 | ; URI will be recognized as a ping page. This could be used to test from outside
239 | ; that FPM is alive and responding, or to
240 | ; - create a graph of FPM availability (rrd or such);
241 | ; - remove a server from a group if it is not responding (load balancing);
242 | ; - trigger alerts for the operating team (24/7).
243 | ; Note: The value must start with a leading slash (/). The value can be
244 | ; anything, but it may not be a good idea to use the .php extension or it
245 | ; may conflict with a real PHP file.
246 | ; Default Value: not set
247 | ping.path = /php-fpm-ping
248 |
249 | ; This directive may be used to customize the response of a ping request. The
250 | ; response is formatted as text/plain with a 200 response code.
251 | ; Default Value: pong
252 | ;ping.response = pong
253 |
254 | ; The access log file
255 | ; Default: not set
256 | ;access.log = log/$pool.access.log
257 |
258 | ; The access log format.
259 | ; The following syntax is allowed
260 | ; %%: the '%' character
261 | ; %C: %CPU used by the request
262 | ; it can accept the following format:
263 | ; - %{user}C for user CPU only
264 | ; - %{system}C for system CPU only
265 | ; - %{total}C for user + system CPU (default)
266 | ; %d: time taken to serve the request
267 | ; it can accept the following format:
268 | ; - %{seconds}d (default)
269 | ; - %{miliseconds}d
270 | ; - %{mili}d
271 | ; - %{microseconds}d
272 | ; - %{micro}d
273 | ; %e: an environment variable (same as $_ENV or $_SERVER)
274 | ; it must be associated with embraces to specify the name of the env
275 | ; variable. Some exemples:
276 | ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
277 | ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
278 | ; %f: script filename
279 | ; %l: content-length of the request (for POST request only)
280 | ; %m: request method
281 | ; %M: peak of memory allocated by PHP
282 | ; it can accept the following format:
283 | ; - %{bytes}M (default)
284 | ; - %{kilobytes}M
285 | ; - %{kilo}M
286 | ; - %{megabytes}M
287 | ; - %{mega}M
288 | ; %n: pool name
289 | ; %o: output header
290 | ; it must be associated with embraces to specify the name of the header:
291 | ; - %{Content-Type}o
292 | ; - %{X-Powered-By}o
293 | ; - %{Transfert-Encoding}o
294 | ; - ....
295 | ; %p: PID of the child that serviced the request
296 | ; %P: PID of the parent of the child that serviced the request
297 | ; %q: the query string
298 | ; %Q: the '?' character if query string exists
299 | ; %r: the request URI (without the query string, see %q and %Q)
300 | ; %R: remote IP address
301 | ; %s: status (response code)
302 | ; %t: server time the request was received
303 | ; it can accept a strftime(3) format:
304 | ; %d/%b/%Y:%H:%M:%S %z (default)
305 | ; %T: time the log has been written (the request has finished)
306 | ; it can accept a strftime(3) format:
307 | ; %d/%b/%Y:%H:%M:%S %z (default)
308 | ; %u: remote user
309 | ;
310 | ; Default: "%R - %u %t \"%m %r\" %s"
311 | ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
312 |
313 | ; The log file for slow requests
314 | ; Default Value: not set
315 | ; Note: slowlog is mandatory if request_slowlog_timeout is set
316 | ;slowlog = log/$pool.log.slow
317 |
318 | ; The timeout for serving a single request after which a PHP backtrace will be
319 | ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
320 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
321 | ; Default Value: 0
322 | ;request_slowlog_timeout = 0
323 |
324 | ; The timeout for serving a single request after which the worker process will
325 | ; be killed. This option should be used when the 'max_execution_time' ini option
326 | ; does not stop script execution for some reason. A value of '0' means 'off'.
327 | ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
328 | ; Default Value: 0
329 | request_terminate_timeout = 5m
330 |
331 | ; Set open file descriptor rlimit.
332 | ; Default Value: system defined value
333 | ;rlimit_files = 1024
334 |
335 | ; Set max core size rlimit.
336 | ; Possible Values: 'unlimited' or an integer greater or equal to 0
337 | ; Default Value: system defined value
338 | ;rlimit_core = 0
339 |
340 | ; Chroot to this directory at the start. This value must be defined as an
341 | ; absolute path. When this value is not set, chroot is not used.
342 | ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
343 | ; of its subdirectories. If the pool prefix is not set, the global prefix
344 | ; will be used instead.
345 | ; Note: chrooting is a great security feature and should be used whenever
346 | ; possible. However, all PHP paths will be relative to the chroot
347 | ; (error_log, sessions.save_path, ...).
348 | ; Default Value: not set
349 | ;chroot =
350 |
351 | ; Chdir to this directory at the start.
352 | ; Note: relative path can be used.
353 | ; Default Value: current directory or / when chroot
354 | chdir = /
355 |
356 | ; Redirect worker stdout and stderr into main error log. If not set, stdout and
357 | ; stderr will be redirected to /dev/null according to FastCGI specs.
358 | ; Note: on highloaded environement, this can cause some delay in the page
359 | ; process time (several ms).
360 | ; Default Value: no
361 | catch_workers_output = yes
362 |
363 | ; Clear environment in FPM workers
364 | ; Prevents arbitrary environment variables from reaching FPM worker processes
365 | ; by clearing the environment in workers before env vars specified in this
366 | ; pool configuration are added.
367 | ; Setting to "no" will make all environment variables available to PHP code
368 | ; via getenv(), $_ENV and $_SERVER.
369 | ; Default Value: yes
370 | ;clear_env = no
371 |
372 | ; Limits the extensions of the main script FPM will allow to parse. This can
373 | ; prevent configuration mistakes on the web server side. You should only limit
374 | ; FPM to .php extensions to prevent malicious users to use other extensions to
375 | ; exectute php code.
376 | ; Note: set an empty value to allow all extensions.
377 | ; Default Value: .php
378 | ;security.limit_extensions = .php .php3 .php4 .php5
379 |
380 | ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
381 | ; the current environment.
382 | ; Default Value: clean env
383 | ;env[HOSTNAME] = $HOSTNAME
384 | ;env[PATH] = /usr/local/bin:/usr/bin:/bin
385 | ;env[TMP] = /tmp
386 | ;env[TMPDIR] = /tmp
387 | ;env[TEMP] = /tmp
388 |
389 | ; Additional php.ini defines, specific to this pool of workers. These settings
390 | ; overwrite the values previously defined in the php.ini. The directives are the
391 | ; same as the PHP SAPI:
392 | ; php_value/php_flag - you can set classic ini defines which can
393 | ; be overwritten from PHP call 'ini_set'.
394 | ; php_admin_value/php_admin_flag - these directives won't be overwritten by
395 | ; PHP call 'ini_set'
396 | ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
397 |
398 | ; Defining 'extension' will load the corresponding shared extension from
399 | ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
400 | ; overwrite previously defined php.ini values, but will append the new value
401 | ; instead.
402 |
403 | ; Note: path INI options can be relative and will be expanded with the prefix
404 | ; (pool, global or /usr)
405 |
406 | ; Default Value: nothing is defined by default except the values in php.ini and
407 | ; specified at startup with the -d argument
408 | ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
409 | ;php_flag[display_errors] = off
410 | ;php_admin_value[error_log] = /var/log/fpm-php.www.log
411 | ;php_admin_flag[log_errors] = on
412 | ;php_admin_value[memory_limit] = 32M
413 |
--------------------------------------------------------------------------------
/.docker/php/php.ini:
--------------------------------------------------------------------------------
1 | [PHP]
2 |
3 | ;;;;;;;;;;;;;;;;;;;
4 | ; About php.ini ;
5 | ;;;;;;;;;;;;;;;;;;;
6 | ; PHP's initialization file, generally called php.ini, is responsible for
7 | ; configuring many of the aspects of PHP's behavior.
8 |
9 | ; PHP attempts to find and load this configuration from a number of locations.
10 | ; The following is a summary of its search order:
11 | ; 1. SAPI module specific location.
12 | ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
13 | ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
14 | ; 4. Current working directory (except CLI)
15 | ; 5. The web server's directory (for SAPI modules), or directory of PHP
16 | ; (otherwise in Windows)
17 | ; 6. The directory from the --with-config-file-path compile time option, or the
18 | ; Windows directory (C:\windows or C:\winnt)
19 | ; See the PHP docs for more specific information.
20 | ; http://php.net/configuration.file
21 |
22 | ; The syntax of the file is extremely simple. Whitespace and lines
23 | ; beginning with a semicolon are silently ignored (as you probably guessed).
24 | ; Section headers (e.g. [Foo]) are also silently ignored, even though
25 | ; they might mean something in the future.
26 |
27 | ; Directives following the section heading [PATH=/www/mysite] only
28 | ; apply to PHP files in the /www/mysite directory. Directives
29 | ; following the section heading [HOST=www.example.com] only apply to
30 | ; PHP files served from www.example.com. Directives set in these
31 | ; special sections cannot be overridden by user-defined INI files or
32 | ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
33 | ; CGI/FastCGI.
34 | ; http://php.net/ini.sections
35 |
36 | ; Directives are specified using the following syntax:
37 | ; directive = value
38 | ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
39 | ; Directives are variables used to configure PHP or PHP extensions.
40 | ; There is no name validation. If PHP can't find an expected
41 | ; directive because it is not set or is mistyped, a default value will be used.
42 |
43 | ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
44 | ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
45 | ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
46 | ; previously set variable or directive (e.g. ${foo})
47 |
48 | ; Expressions in the INI file are limited to bitwise operators and parentheses:
49 | ; | bitwise OR
50 | ; ^ bitwise XOR
51 | ; & bitwise AND
52 | ; ~ bitwise NOT
53 | ; ! boolean NOT
54 |
55 | ; Boolean flags can be turned on using the values 1, On, True or Yes.
56 | ; They can be turned off using the values 0, Off, False or No.
57 |
58 | ; An empty string can be denoted by simply not writing anything after the equal
59 | ; sign, or by using the None keyword:
60 |
61 | ; foo = ; sets foo to an empty string
62 | ; foo = None ; sets foo to an empty string
63 | ; foo = "None" ; sets foo to the string 'None'
64 |
65 | ; If you use constants in your value, and these constants belong to a
66 | ; dynamically loaded extension (either a PHP extension or a Zend extension),
67 | ; you may only use these constants *after* the line that loads the extension.
68 |
69 | ;;;;;;;;;;;;;;;;;;;
70 | ; About this file ;
71 | ;;;;;;;;;;;;;;;;;;;
72 | ; PHP comes packaged with two INI files. One that is recommended to be used
73 | ; in production environments and one that is recommended to be used in
74 | ; development environments.
75 |
76 | ; php.ini-production contains settings which hold security, performance and
77 | ; best practices at its core. But please be aware, these settings may break
78 | ; compatibility with older or less security conscience applications. We
79 | ; recommending using the production ini in production and testing environments.
80 |
81 | ; php.ini-development is very similar to its production variant, except it is
82 | ; much more verbose when it comes to errors. We recommend using the
83 | ; development version only in development environments, as errors shown to
84 | ; application users can inadvertently leak otherwise secure information.
85 |
86 | ; This is php.ini-production INI file.
87 |
88 | ;;;;;;;;;;;;;;;;;;;
89 | ; Quick Reference ;
90 | ;;;;;;;;;;;;;;;;;;;
91 | ; The following are all the settings which are different in either the production
92 | ; or development versions of the INIs with respect to PHP's default behavior.
93 | ; Please see the actual settings later in the document for more details as to why
94 | ; we recommend these changes in PHP's behavior.
95 |
96 | ; display_errors
97 | ; Default Value: On
98 | ; Development Value: On
99 | ; Production Value: Off
100 |
101 | ; display_startup_errors
102 | ; Default Value: Off
103 | ; Development Value: On
104 | ; Production Value: Off
105 |
106 | ; error_reporting
107 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
108 | ; Development Value: E_ALL
109 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
110 |
111 | ; html_errors
112 | ; Default Value: On
113 | ; Development Value: On
114 | ; Production value: On
115 |
116 | ; log_errors
117 | ; Default Value: Off
118 | ; Development Value: On
119 | ; Production Value: On
120 |
121 | ; max_input_time
122 | ; Default Value: -1 (Unlimited)
123 | ; Development Value: 60 (60 seconds)
124 | ; Production Value: 60 (60 seconds)
125 |
126 | ; output_buffering
127 | ; Default Value: Off
128 | ; Development Value: 4096
129 | ; Production Value: 4096
130 |
131 | ; register_argc_argv
132 | ; Default Value: On
133 | ; Development Value: Off
134 | ; Production Value: Off
135 |
136 | ; request_order
137 | ; Default Value: None
138 | ; Development Value: "GP"
139 | ; Production Value: "GP"
140 |
141 | ; session.gc_divisor
142 | ; Default Value: 100
143 | ; Development Value: 1000
144 | ; Production Value: 1000
145 |
146 | ; session.hash_bits_per_character
147 | ; Default Value: 4
148 | ; Development Value: 5
149 | ; Production Value: 5
150 |
151 | ; short_open_tag
152 | ; Default Value: On
153 | ; Development Value: Off
154 | ; Production Value: Off
155 |
156 | ; track_errors
157 | ; Default Value: Off
158 | ; Development Value: On
159 | ; Production Value: Off
160 |
161 | ; url_rewriter.tags
162 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
163 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
164 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
165 |
166 | ; variables_order
167 | ; Default Value: "EGPCS"
168 | ; Development Value: "GPCS"
169 | ; Production Value: "GPCS"
170 |
171 | ;;;;;;;;;;;;;;;;;;;;
172 | ; php.ini Options ;
173 | ;;;;;;;;;;;;;;;;;;;;
174 | ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
175 | ;user_ini.filename = ".user.ini"
176 |
177 | ; To disable this feature set this option to empty value
178 | ;user_ini.filename =
179 |
180 | ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
181 | ;user_ini.cache_ttl = 300
182 |
183 | ;;;;;;;;;;;;;;;;;;;;
184 | ; Language Options ;
185 | ;;;;;;;;;;;;;;;;;;;;
186 |
187 | ; Enable the PHP scripting language engine under Apache.
188 | ; http://php.net/engine
189 | engine = On
190 |
191 | ; This directive determines whether or not PHP will recognize code between
192 | ; and ?> tags as PHP source which should be processed as such. It is
193 | ; generally recommended that should be used and that this feature
194 | ; should be disabled, as enabling it may result in issues when generating XML
195 | ; documents, however this remains supported for backward compatibility reasons.
196 | ; Note that this directive does not control the = shorthand tag, which can be
197 | ; used regardless of this directive.
198 | ; Default Value: On
199 | ; Development Value: Off
200 | ; Production Value: Off
201 | ; http://php.net/short-open-tag
202 | short_open_tag = Off
203 |
204 | ; Allow ASP-style <% %> tags.
205 | ; http://php.net/asp-tags
206 | asp_tags = Off
207 |
208 | ; The number of significant digits displayed in floating point numbers.
209 | ; http://php.net/precision
210 | precision = 14
211 |
212 | ; Output buffering is a mechanism for controlling how much output data
213 | ; (excluding headers and cookies) PHP should keep internally before pushing that
214 | ; data to the client. If your application's output exceeds this setting, PHP
215 | ; will send that data in chunks of roughly the size you specify.
216 | ; Turning on this setting and managing its maximum buffer size can yield some
217 | ; interesting side-effects depending on your application and web server.
218 | ; You may be able to send headers and cookies after you've already sent output
219 | ; through print or echo. You also may see performance benefits if your server is
220 | ; emitting less packets due to buffered output versus PHP streaming the output
221 | ; as it gets it. On production servers, 4096 bytes is a good setting for performance
222 | ; reasons.
223 | ; Note: Output buffering can also be controlled via Output Buffering Control
224 | ; functions.
225 | ; Possible Values:
226 | ; On = Enabled and buffer is unlimited. (Use with caution)
227 | ; Off = Disabled
228 | ; Integer = Enables the buffer and sets its maximum size in bytes.
229 | ; Note: This directive is hardcoded to Off for the CLI SAPI
230 | ; Default Value: Off
231 | ; Development Value: 4096
232 | ; Production Value: 4096
233 | ; http://php.net/output-buffering
234 | output_buffering = 4096
235 |
236 | ; You can redirect all of the output of your scripts to a function. For
237 | ; example, if you set output_handler to "mb_output_handler", character
238 | ; encoding will be transparently converted to the specified encoding.
239 | ; Setting any output handler automatically turns on output buffering.
240 | ; Note: People who wrote portable scripts should not depend on this ini
241 | ; directive. Instead, explicitly set the output handler using ob_start().
242 | ; Using this ini directive may cause problems unless you know what script
243 | ; is doing.
244 | ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
245 | ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
246 | ; Note: output_handler must be empty if this is set 'On' !!!!
247 | ; Instead you must use zlib.output_handler.
248 | ; http://php.net/output-handler
249 | ;output_handler =
250 |
251 | ; Transparent output compression using the zlib library
252 | ; Valid values for this option are 'off', 'on', or a specific buffer size
253 | ; to be used for compression (default is 4KB)
254 | ; Note: Resulting chunk size may vary due to nature of compression. PHP
255 | ; outputs chunks that are few hundreds bytes each as a result of
256 | ; compression. If you prefer a larger chunk size for better
257 | ; performance, enable output_buffering in addition.
258 | ; Note: You need to use zlib.output_handler instead of the standard
259 | ; output_handler, or otherwise the output will be corrupted.
260 | ; http://php.net/zlib.output-compression
261 | zlib.output_compression = Off
262 |
263 | ; http://php.net/zlib.output-compression-level
264 | ;zlib.output_compression_level = -1
265 |
266 | ; You cannot specify additional output handlers if zlib.output_compression
267 | ; is activated here. This setting does the same as output_handler but in
268 | ; a different order.
269 | ; http://php.net/zlib.output-handler
270 | ;zlib.output_handler =
271 |
272 | ; Implicit flush tells PHP to tell the output layer to flush itself
273 | ; automatically after every output block. This is equivalent to calling the
274 | ; PHP function flush() after each and every call to print() or echo() and each
275 | ; and every HTML block. Turning this option on has serious performance
276 | ; implications and is generally recommended for debugging purposes only.
277 | ; http://php.net/implicit-flush
278 | ; Note: This directive is hardcoded to On for the CLI SAPI
279 | implicit_flush = Off
280 |
281 | ; The unserialize callback function will be called (with the undefined class'
282 | ; name as parameter), if the unserializer finds an undefined class
283 | ; which should be instantiated. A warning appears if the specified function is
284 | ; not defined, or if the function doesn't include/implement the missing class.
285 | ; So only set this entry, if you really want to implement such a
286 | ; callback-function.
287 | unserialize_callback_func =
288 |
289 | ; When floats & doubles are serialized store serialize_precision significant
290 | ; digits after the floating point. The default value ensures that when floats
291 | ; are decoded with unserialize, the data will remain the same.
292 | serialize_precision = 17
293 |
294 | ; open_basedir, if set, limits all file operations to the defined directory
295 | ; and below. This directive makes most sense if used in a per-directory
296 | ; or per-virtualhost web server configuration file.
297 | ; http://php.net/open-basedir
298 | ;open_basedir =
299 |
300 | ; This directive allows you to disable certain functions for security reasons.
301 | ; It receives a comma-delimited list of function names.
302 | ; http://php.net/disable-functions
303 | disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
304 |
305 | ; This directive allows you to disable certain classes for security reasons.
306 | ; It receives a comma-delimited list of class names.
307 | ; http://php.net/disable-classes
308 | disable_classes =
309 |
310 | ; Colors for Syntax Highlighting mode. Anything that's acceptable in
311 | ; would work.
312 | ; http://php.net/syntax-highlighting
313 | ;highlight.string = #DD0000
314 | ;highlight.comment = #FF9900
315 | ;highlight.keyword = #007700
316 | ;highlight.default = #0000BB
317 | ;highlight.html = #000000
318 |
319 | ; If enabled, the request will be allowed to complete even if the user aborts
320 | ; the request. Consider enabling it if executing long requests, which may end up
321 | ; being interrupted by the user or a browser timing out. PHP's default behavior
322 | ; is to disable this feature.
323 | ; http://php.net/ignore-user-abort
324 | ;ignore_user_abort = On
325 |
326 | ; Determines the size of the realpath cache to be used by PHP. This value should
327 | ; be increased on systems where PHP opens many files to reflect the quantity of
328 | ; the file operations performed.
329 | ; http://php.net/realpath-cache-size
330 | ;realpath_cache_size = 16k
331 |
332 | ; Duration of time, in seconds for which to cache realpath information for a given
333 | ; file or directory. For systems with rarely changing files, consider increasing this
334 | ; value.
335 | ; http://php.net/realpath-cache-ttl
336 | ;realpath_cache_ttl = 120
337 |
338 | ; Enables or disables the circular reference collector.
339 | ; http://php.net/zend.enable-gc
340 | zend.enable_gc = On
341 |
342 | ; If enabled, scripts may be written in encodings that are incompatible with
343 | ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
344 | ; encodings. To use this feature, mbstring extension must be enabled.
345 | ; Default: Off
346 | ;zend.multibyte = Off
347 |
348 | ; Allows to set the default encoding for the scripts. This value will be used
349 | ; unless "declare(encoding=...)" directive appears at the top of the script.
350 | ; Only affects if zend.multibyte is set.
351 | ; Default: ""
352 | ;zend.script_encoding =
353 |
354 | ;;;;;;;;;;;;;;;;;
355 | ; Miscellaneous ;
356 | ;;;;;;;;;;;;;;;;;
357 |
358 | ; Decides whether PHP may expose the fact that it is installed on the server
359 | ; (e.g. by adding its signature to the Web server header). It is no security
360 | ; threat in any way, but it makes it possible to determine whether you use PHP
361 | ; on your server or not.
362 | ; http://php.net/expose-php
363 | expose_php = Off
364 |
365 | ;;;;;;;;;;;;;;;;;;;
366 | ; Resource Limits ;
367 | ;;;;;;;;;;;;;;;;;;;
368 |
369 | ; Maximum execution time of each script, in seconds
370 | ; http://php.net/max-execution-time
371 | ; Note: This directive is hardcoded to 0 for the CLI SAPI
372 | max_execution_time = 300
373 |
374 | ; Maximum amount of time each script may spend parsing request data. It's a good
375 | ; idea to limit this time on productions servers in order to eliminate unexpectedly
376 | ; long running scripts.
377 | ; Note: This directive is hardcoded to -1 for the CLI SAPI
378 | ; Default Value: -1 (Unlimited)
379 | ; Development Value: 60 (60 seconds)
380 | ; Production Value: 60 (60 seconds)
381 | ; http://php.net/max-input-time
382 | max_input_time = 60
383 |
384 | ; Maximum input variable nesting level
385 | ; http://php.net/max-input-nesting-level
386 | ;max_input_nesting_level = 64
387 |
388 | ; How many GET/POST/COOKIE input variables may be accepted
389 | ; max_input_vars = 1000
390 |
391 | ; Maximum amount of memory a script may consume (128MB)
392 | ; http://php.net/memory-limitmemory_limit
393 | memory_limit = 2048M
394 |
395 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
396 | ; Error handling and logging ;
397 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
398 |
399 | ; This directive informs PHP of which errors, warnings and notices you would like
400 | ; it to take action for. The recommended way of setting values for this
401 | ; directive is through the use of the error level constants and bitwise
402 | ; operators. The error level constants are below here for convenience as well as
403 | ; some common settings and their meanings.
404 | ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
405 | ; those related to E_NOTICE and E_STRICT, which together cover best practices and
406 | ; recommended coding standards in PHP. For performance reasons, this is the
407 | ; recommend error reporting setting. Your production server shouldn't be wasting
408 | ; resources complaining about best practices and coding standards. That's what
409 | ; development servers and development settings are for.
410 | ; Note: The php.ini-development file has this setting as E_ALL. This
411 | ; means it pretty much reports everything which is exactly what you want during
412 | ; development and early testing.
413 | ;
414 | ; Error Level Constants:
415 | ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
416 | ; E_ERROR - fatal run-time errors
417 | ; E_RECOVERABLE_ERROR - almost fatal run-time errors
418 | ; E_WARNING - run-time warnings (non-fatal errors)
419 | ; E_PARSE - compile-time parse errors
420 | ; E_NOTICE - run-time notices (these are warnings which often result
421 | ; from a bug in your code, but it's possible that it was
422 | ; intentional (e.g., using an uninitialized variable and
423 | ; relying on the fact it is automatically initialized to an
424 | ; empty string)
425 | ; E_STRICT - run-time notices, enable to have PHP suggest changes
426 | ; to your code which will ensure the best interoperability
427 | ; and forward compatibility of your code
428 | ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
429 | ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
430 | ; initial startup
431 | ; E_COMPILE_ERROR - fatal compile-time errors
432 | ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
433 | ; E_USER_ERROR - user-generated error message
434 | ; E_USER_WARNING - user-generated warning message
435 | ; E_USER_NOTICE - user-generated notice message
436 | ; E_DEPRECATED - warn about code that will not work in future versions
437 | ; of PHP
438 | ; E_USER_DEPRECATED - user-generated deprecation warnings
439 | ;
440 | ; Common Values:
441 | ; E_ALL (Show all errors, warnings and notices including coding standards.)
442 | ; E_ALL & ~E_NOTICE (Show all errors, except for notices)
443 | ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
444 | ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
445 | ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
446 | ; Development Value: E_ALL
447 | ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
448 | ; http://php.net/error-reporting
449 | error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
450 |
451 | ; This directive controls whether or not and where PHP will output errors,
452 | ; notices and warnings too. Error output is very useful during development, but
453 | ; it could be very dangerous in production environments. Depending on the code
454 | ; which is triggering the error, sensitive information could potentially leak
455 | ; out of your application such as database usernames and passwords or worse.
456 | ; For production environments, we recommend logging errors rather than
457 | ; sending them to STDOUT.
458 | ; Possible Values:
459 | ; Off = Do not display any errors
460 | ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
461 | ; On or stdout = Display errors to STDOUT
462 | ; Default Value: On
463 | ; Development Value: On
464 | ; Production Value: Off
465 | ; http://php.net/display-errors
466 | display_errors = Off
467 |
468 | ; The display of errors which occur during PHP's startup sequence are handled
469 | ; separately from display_errors. PHP's default behavior is to suppress those
470 | ; errors from clients. Turning the display of startup errors on can be useful in
471 | ; debugging configuration problems. We strongly recommend you
472 | ; set this to 'off' for production servers.
473 | ; Default Value: Off
474 | ; Development Value: On
475 | ; Production Value: Off
476 | ; http://php.net/display-startup-errors
477 | display_startup_errors = Off
478 |
479 | ; Besides displaying errors, PHP can also log errors to locations such as a
480 | ; server-specific log, STDERR, or a location specified by the error_log
481 | ; directive found below. While errors should not be displayed on productions
482 | ; servers they should still be monitored and logging is a great way to do that.
483 | ; Default Value: Off
484 | ; Development Value: On
485 | ; Production Value: On
486 | ; http://php.net/log-errors
487 | log_errors = On
488 |
489 | ; Set maximum length of log_errors. In error_log information about the source is
490 | ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
491 | ; http://php.net/log-errors-max-len
492 | log_errors_max_len = 1024
493 |
494 | ; Do not log repeated messages. Repeated errors must occur in same file on same
495 | ; line unless ignore_repeated_source is set true.
496 | ; http://php.net/ignore-repeated-errors
497 | ignore_repeated_errors = Off
498 |
499 | ; Ignore source of message when ignoring repeated messages. When this setting
500 | ; is On you will not log errors with repeated messages from different files or
501 | ; source lines.
502 | ; http://php.net/ignore-repeated-source
503 | ignore_repeated_source = Off
504 |
505 | ; If this parameter is set to Off, then memory leaks will not be shown (on
506 | ; stdout or in the log). This has only effect in a debug compile, and if
507 | ; error reporting includes E_WARNING in the allowed list
508 | ; http://php.net/report-memleaks
509 | report_memleaks = On
510 |
511 | ; This setting is on by default.
512 | ;report_zend_debug = 0
513 |
514 | ; Store the last error/warning message in $php_errormsg (boolean). Setting this value
515 | ; to On can assist in debugging and is appropriate for development servers. It should
516 | ; however be disabled on production servers.
517 | ; Default Value: Off
518 | ; Development Value: On
519 | ; Production Value: Off
520 | ; http://php.net/track-errors
521 | track_errors = Off
522 |
523 | ; Turn off normal error reporting and emit XML-RPC error XML
524 | ; http://php.net/xmlrpc-errors
525 | ;xmlrpc_errors = 0
526 |
527 | ; An XML-RPC faultCode
528 | ;xmlrpc_error_number = 0
529 |
530 | ; When PHP displays or logs an error, it has the capability of formatting the
531 | ; error message as HTML for easier reading. This directive controls whether
532 | ; the error message is formatted as HTML or not.
533 | ; Note: This directive is hardcoded to Off for the CLI SAPI
534 | ; Default Value: On
535 | ; Development Value: On
536 | ; Production value: On
537 | ; http://php.net/html-errors
538 | html_errors = On
539 |
540 | ; If html_errors is set to On *and* docref_root is not empty, then PHP
541 | ; produces clickable error messages that direct to a page describing the error
542 | ; or function causing the error in detail.
543 | ; You can download a copy of the PHP manual from http://php.net/docs
544 | ; and change docref_root to the base URL of your local copy including the
545 | ; leading '/'. You must also specify the file extension being used including
546 | ; the dot. PHP's default behavior is to leave these settings empty, in which
547 | ; case no links to documentation are generated.
548 | ; Note: Never use this feature for production boxes.
549 | ; http://php.net/docref-root
550 | ; Examples
551 | ;docref_root = "/phpmanual/"
552 |
553 | ; http://php.net/docref-ext
554 | ;docref_ext = .html
555 |
556 | ; String to output before an error message. PHP's default behavior is to leave
557 | ; this setting blank.
558 | ; http://php.net/error-prepend-string
559 | ; Example:
560 | ;error_prepend_string = ""
561 |
562 | ; String to output after an error message. PHP's default behavior is to leave
563 | ; this setting blank.
564 | ; http://php.net/error-append-string
565 | ; Example:
566 | ;error_append_string = ""
567 |
568 | ; Log errors to specified file. PHP's default behavior is to leave this value
569 | ; empty.
570 | ; http://php.net/error-log
571 | ; Example:
572 | ;error_log = php_errors.log
573 | ; Log errors to syslog (Event Log on Windows).
574 | ;error_log = syslog
575 | error_log = /var/log/apache2/php-error.log
576 |
577 | ;windows.show_crt_warning
578 | ; Default value: 0
579 | ; Development value: 0
580 | ; Production value: 0
581 |
582 | ;;;;;;;;;;;;;;;;;
583 | ; Data Handling ;
584 | ;;;;;;;;;;;;;;;;;
585 |
586 | ; The separator used in PHP generated URLs to separate arguments.
587 | ; PHP's default setting is "&".
588 | ; http://php.net/arg-separator.output
589 | ; Example:
590 | ;arg_separator.output = "&"
591 |
592 | ; List of separator(s) used by PHP to parse input URLs into variables.
593 | ; PHP's default setting is "&".
594 | ; NOTE: Every character in this directive is considered as separator!
595 | ; http://php.net/arg-separator.input
596 | ; Example:
597 | ;arg_separator.input = ";&"
598 |
599 | ; This directive determines which super global arrays are registered when PHP
600 | ; starts up. G,P,C,E & S are abbreviations for the following respective super
601 | ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
602 | ; paid for the registration of these arrays and because ENV is not as commonly
603 | ; used as the others, ENV is not recommended on productions servers. You
604 | ; can still get access to the environment variables through getenv() should you
605 | ; need to.
606 | ; Default Value: "EGPCS"
607 | ; Development Value: "GPCS"
608 | ; Production Value: "GPCS";
609 | ; http://php.net/variables-order
610 | variables_order = "GPCS"
611 |
612 | ; This directive determines which super global data (G,P & C) should be
613 | ; registered into the super global array REQUEST. If so, it also determines
614 | ; the order in which that data is registered. The values for this directive
615 | ; are specified in the same manner as the variables_order directive,
616 | ; EXCEPT one. Leaving this value empty will cause PHP to use the value set
617 | ; in the variables_order directive. It does not mean it will leave the super
618 | ; globals array REQUEST empty.
619 | ; Default Value: None
620 | ; Development Value: "GP"
621 | ; Production Value: "GP"
622 | ; http://php.net/request-order
623 | request_order = "GP"
624 |
625 | ; This directive determines whether PHP registers $argv & $argc each time it
626 | ; runs. $argv contains an array of all the arguments passed to PHP when a script
627 | ; is invoked. $argc contains an integer representing the number of arguments
628 | ; that were passed when the script was invoked. These arrays are extremely
629 | ; useful when running scripts from the command line. When this directive is
630 | ; enabled, registering these variables consumes CPU cycles and memory each time
631 | ; a script is executed. For performance reasons, this feature should be disabled
632 | ; on production servers.
633 | ; Note: This directive is hardcoded to On for the CLI SAPI
634 | ; Default Value: On
635 | ; Development Value: Off
636 | ; Production Value: Off
637 | ; http://php.net/register-argc-argv
638 | register_argc_argv = Off
639 |
640 | ; When enabled, the ENV, REQUEST and SERVER variables are created when they're
641 | ; first used (Just In Time) instead of when the script starts. If these
642 | ; variables are not used within a script, having this directive on will result
643 | ; in a performance gain. The PHP directive register_argc_argv must be disabled
644 | ; for this directive to have any affect.
645 | ; http://php.net/auto-globals-jit
646 | auto_globals_jit = On
647 |
648 | ; Whether PHP will read the POST data.
649 | ; This option is enabled by default.
650 | ; Most likely, you won't want to disable this option globally. It causes $_POST
651 | ; and $_FILES to always be empty; the only way you will be able to read the
652 | ; POST data will be through the php://input stream wrapper. This can be useful
653 | ; to proxy requests or to process the POST data in a memory efficient fashion.
654 | ; http://php.net/enable-post-data-reading
655 | ;enable_post_data_reading = Off
656 |
657 | ; Maximum size of POST data that PHP will accept.
658 | ; Its value may be 0 to disable the limit. It is ignored if POST data reading
659 | ; is disabled through enable_post_data_reading.
660 | ; http://php.net/post-max-size
661 | post_max_size = 8M
662 |
663 | ; Automatically add files before PHP document.
664 | ; http://php.net/auto-prepend-file
665 | auto_prepend_file =
666 |
667 | ; Automatically add files after PHP document.
668 | ; http://php.net/auto-append-file
669 | auto_append_file =
670 |
671 | ; By default, PHP will output a character encoding using
672 | ; the Content-type: header. To disable sending of the charset, simply
673 | ; set it to be empty.
674 | ;
675 | ; PHP's built-in default is text/html
676 | ; http://php.net/default-mimetype
677 | default_mimetype = "text/html"
678 |
679 | ; PHP's default character set is set to UTF-8.
680 | ; http://php.net/default-charset
681 | default_charset = "UTF-8"
682 |
683 | ; PHP internal character encoding is set to empty.
684 | ; If empty, default_charset is used.
685 | ; http://php.net/internal-encoding
686 | ;internal_encoding =
687 |
688 | ; PHP input character encoding is set to empty.
689 | ; If empty, default_charset is used.
690 | ; http://php.net/input-encoding
691 | ;input_encoding =
692 |
693 | ; PHP output character encoding is set to empty.
694 | ; If empty, default_charset is used.
695 | ; mbstring or iconv output handler is used.
696 | ; See also output_buffer.
697 | ; http://php.net/output-encoding
698 | ;output_encoding =
699 |
700 | ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
701 | ; to disable this feature and it will be removed in a future version.
702 | ; If post reading is disabled through enable_post_data_reading,
703 | ; $HTTP_RAW_POST_DATA is *NOT* populated.
704 | ; http://php.net/always-populate-raw-post-data
705 | ;always_populate_raw_post_data = -1
706 |
707 | ;;;;;;;;;;;;;;;;;;;;;;;;;
708 | ; Paths and Directories ;
709 | ;;;;;;;;;;;;;;;;;;;;;;;;;
710 |
711 | ; UNIX: "/path1:/path2"
712 | ;include_path = ".:/usr/share/php"
713 | ;
714 | ; Windows: "\path1;\path2"
715 | ;include_path = ".;c:\php\includes"
716 | ;
717 | ; PHP's default setting for include_path is ".;/path/to/php/pear"
718 | ; http://php.net/include-path
719 |
720 | ; The root of the PHP pages, used only if nonempty.
721 | ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
722 | ; if you are running php as a CGI under any web server (other than IIS)
723 | ; see documentation for security issues. The alternate is to use the
724 | ; cgi.force_redirect configuration below
725 | ; http://php.net/doc-root
726 | doc_root =
727 |
728 | ; The directory under which PHP opens the script using /~username used only
729 | ; if nonempty.
730 | ; http://php.net/user-dir
731 | user_dir =
732 |
733 | ; Directory in which the loadable extensions (modules) reside.
734 | ; http://php.net/extension-dir
735 | ; extension_dir = "./"
736 | ; On windows:
737 | ; extension_dir = "ext"
738 |
739 | ; Directory where the temporary files should be placed.
740 | ; Defaults to the system default (see sys_get_temp_dir)
741 | ; sys_temp_dir = "/tmp"
742 |
743 | ; Whether or not to enable the dl() function. The dl() function does NOT work
744 | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
745 | ; disabled on them.
746 | ; http://php.net/enable-dl
747 | enable_dl = Off
748 |
749 | ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
750 | ; most web servers. Left undefined, PHP turns this on by default. You can
751 | ; turn it off here AT YOUR OWN RISK
752 | ; **You CAN safely turn this off for IIS, in fact, you MUST.**
753 | ; http://php.net/cgi.force-redirect
754 | ;cgi.force_redirect = 1
755 |
756 | ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
757 | ; every request. PHP's default behavior is to disable this feature.
758 | ;cgi.nph = 1
759 |
760 | ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
761 | ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
762 | ; will look for to know it is OK to continue execution. Setting this variable MAY
763 | ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
764 | ; http://php.net/cgi.redirect-status-env
765 | ;cgi.redirect_status_env =
766 |
767 | ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
768 | ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
769 | ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
770 | ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
771 | ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
772 | ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
773 | ; http://php.net/cgi.fix-pathinfo
774 | ;cgi.fix_pathinfo=1
775 |
776 | ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
777 | ; security tokens of the calling client. This allows IIS to define the
778 | ; security context that the request runs under. mod_fastcgi under Apache
779 | ; does not currently support this feature (03/17/2002)
780 | ; Set to 1 if running under IIS. Default is zero.
781 | ; http://php.net/fastcgi.impersonate
782 | ;fastcgi.impersonate = 1
783 |
784 | ; Disable logging through FastCGI connection. PHP's default behavior is to enable
785 | ; this feature.
786 | ;fastcgi.logging = 0
787 |
788 | ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
789 | ; use when sending HTTP response code. If set to 0, PHP sends Status: header that
790 | ; is supported by Apache. When this option is set to 1, PHP will send
791 | ; RFC2616 compliant header.
792 | ; Default is zero.
793 | ; http://php.net/cgi.rfc2616-headers
794 | ;cgi.rfc2616_headers = 0
795 |
796 | ;;;;;;;;;;;;;;;;
797 | ; File Uploads ;
798 | ;;;;;;;;;;;;;;;;
799 |
800 | ; Whether to allow HTTP file uploads.
801 | ; http://php.net/file-uploads
802 | file_uploads = On
803 |
804 | ; Temporary directory for HTTP uploaded files (will use system default if not
805 | ; specified).
806 | ; http://php.net/upload-tmp-dir
807 | ;upload_tmp_dir =
808 |
809 | ; Maximum allowed size for uploaded files.
810 | ; http://php.net/upload-max-filesize
811 | upload_max_filesize = 2M
812 |
813 | ; Maximum number of files that can be uploaded via a single request
814 | max_file_uploads = 20
815 |
816 | ;;;;;;;;;;;;;;;;;;
817 | ; Fopen wrappers ;
818 | ;;;;;;;;;;;;;;;;;;
819 |
820 | ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
821 | ; http://php.net/allow-url-fopen
822 | allow_url_fopen = On
823 |
824 | ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
825 | ; http://php.net/allow-url-include
826 | allow_url_include = Off
827 |
828 | ; Define the anonymous ftp password (your email address). PHP's default setting
829 | ; for this is empty.
830 | ; http://php.net/from
831 | ;from="john@doe.com"
832 |
833 | ; Define the User-Agent string. PHP's default setting for this is empty.
834 | ; http://php.net/user-agent
835 | ;user_agent="PHP"
836 |
837 | ; Default timeout for socket based streams (seconds)
838 | ; http://php.net/default-socket-timeout
839 | default_socket_timeout = 60
840 |
841 | ; If your scripts have to deal with files from Macintosh systems,
842 | ; or you are running on a Mac and need to deal with files from
843 | ; unix or win32 systems, setting this flag will cause PHP to
844 | ; automatically detect the EOL character in those files so that
845 | ; fgets() and file() will work regardless of the source of the file.
846 | ; http://php.net/auto-detect-line-endings
847 | ;auto_detect_line_endings = Off
848 |
849 | ;;;;;;;;;;;;;;;;;;;;;;
850 | ; Dynamic Extensions ;
851 | ;;;;;;;;;;;;;;;;;;;;;;
852 |
853 | ; If you wish to have an extension loaded automatically, use the following
854 | ; syntax:
855 | ;
856 | ; extension=modulename.extension
857 | ;
858 | ; For example, on Windows:
859 | ;
860 | ; extension=msql.dll
861 | ;
862 | ; ... or under UNIX:
863 | ;
864 | ; extension=msql.so
865 | ;
866 | ; ... or with a path:
867 | ;
868 | ; extension=/path/to/extension/msql.so
869 | ;
870 | ; If you only provide the name of the extension, PHP will look for it in its
871 | ; default extension directory.
872 | ;
873 |
874 | ;;;;;;;;;;;;;;;;;;;
875 | ; Module Settings ;
876 | ;;;;;;;;;;;;;;;;;;;
877 |
878 | [CLI Server]
879 | ; Whether the CLI web server uses ANSI color coding in its terminal output.
880 | cli_server.color = On
881 |
882 | [Date]
883 | ; Defines the default timezone used by the date functions
884 | ; http://php.net/date.timezone
885 | date.timezone = Europe/Paris
886 |
887 | ; http://php.net/date.default-latitude
888 | ;date.default_latitude = 31.7667
889 |
890 | ; http://php.net/date.default-longitude
891 | ;date.default_longitude = 35.2333
892 |
893 | ; http://php.net/date.sunrise-zenith
894 | ;date.sunrise_zenith = 90.583333
895 |
896 | ; http://php.net/date.sunset-zenith
897 | ;date.sunset_zenith = 90.583333
898 |
899 | [filter]
900 | ; http://php.net/filter.default
901 | ;filter.default = unsafe_raw
902 |
903 | ; http://php.net/filter.default-flags
904 | ;filter.default_flags =
905 |
906 | [iconv]
907 | ; Use of this INI entry is deprecated, use global input_encoding instead.
908 | ; If empty, default_charset or input_encoding or iconv.input_encoding is used.
909 | ; The precedence is: default_charset < intput_encoding < iconv.input_encoding
910 | ;iconv.input_encoding =
911 |
912 | ; Use of this INI entry is deprecated, use global internal_encoding instead.
913 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
914 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
915 | ;iconv.internal_encoding =
916 |
917 | ; Use of this INI entry is deprecated, use global output_encoding instead.
918 | ; If empty, default_charset or output_encoding or iconv.output_encoding is used.
919 | ; The precedence is: default_charset < output_encoding < iconv.output_encoding
920 | ; To use an output encoding conversion, iconv's output handler must be set
921 | ; otherwise output encoding conversion cannot be performed.
922 | ;iconv.output_encoding =
923 |
924 | [intl]
925 | ;intl.default_locale =
926 | ; This directive allows you to produce PHP errors when some error
927 | ; happens within intl functions. The value is the level of the error produced.
928 | ; Default is 0, which does not produce any errors.
929 | ;intl.error_level = E_WARNING
930 |
931 | [sqlite]
932 | ; http://php.net/sqlite.assoc-case
933 | ;sqlite.assoc_case = 0
934 |
935 | [sqlite3]
936 | ;sqlite3.extension_dir =
937 |
938 | [Pcre]
939 | ;PCRE library backtracking limit.
940 | ; http://php.net/pcre.backtrack-limit
941 | ;pcre.backtrack_limit=100000
942 |
943 | ;PCRE library recursion limit.
944 | ;Please note that if you set this value to a high number you may consume all
945 | ;the available process stack and eventually crash PHP (due to reaching the
946 | ;stack size limit imposed by the Operating System).
947 | ; http://php.net/pcre.recursion-limit
948 | ;pcre.recursion_limit=100000
949 |
950 | [Pdo]
951 | ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
952 | ; http://php.net/pdo-odbc.connection-pooling
953 | ;pdo_odbc.connection_pooling=strict
954 |
955 | ;pdo_odbc.db2_instance_name
956 |
957 | [Pdo_mysql]
958 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
959 | ; http://php.net/pdo_mysql.cache_size
960 | pdo_mysql.cache_size = 2000
961 |
962 | ; Default socket name for local MySQL connects. If empty, uses the built-in
963 | ; MySQL defaults.
964 | ; http://php.net/pdo_mysql.default-socket
965 | pdo_mysql.default_socket=
966 |
967 | [Phar]
968 | ; http://php.net/phar.readonly
969 | ;phar.readonly = On
970 |
971 | ; http://php.net/phar.require-hash
972 | ;phar.require_hash = On
973 |
974 | ;phar.cache_list =
975 |
976 | [mail function]
977 | ; For Win32 only.
978 | ; http://php.net/smtp
979 | SMTP = localhost
980 | ; http://php.net/smtp-port
981 | smtp_port = 25
982 |
983 | ; For Win32 only.
984 | ; http://php.net/sendmail-from
985 | ;sendmail_from = me@example.com
986 |
987 | ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
988 | ; http://php.net/sendmail-path
989 | ;sendmail_path =
990 |
991 | ; Force the addition of the specified parameters to be passed as extra parameters
992 | ; to the sendmail binary. These parameters will always replace the value of
993 | ; the 5th parameter to mail().
994 | ;mail.force_extra_parameters =
995 |
996 | ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
997 | mail.add_x_header = On
998 |
999 | ; The path to a log file that will log all mail() calls. Log entries include
1000 | ; the full path of the script, line number, To address and headers.
1001 | ;mail.log =
1002 | ; Log mail to syslog (Event Log on Windows).
1003 | ;mail.log = syslog
1004 |
1005 | [SQL]
1006 | ; http://php.net/sql.safe-mode
1007 | sql.safe_mode = Off
1008 |
1009 | [ODBC]
1010 | ; http://php.net/odbc.default-db
1011 | ;odbc.default_db = Not yet implemented
1012 |
1013 | ; http://php.net/odbc.default-user
1014 | ;odbc.default_user = Not yet implemented
1015 |
1016 | ; http://php.net/odbc.default-pw
1017 | ;odbc.default_pw = Not yet implemented
1018 |
1019 | ; Controls the ODBC cursor model.
1020 | ; Default: SQL_CURSOR_STATIC (default).
1021 | ;odbc.default_cursortype
1022 |
1023 | ; Allow or prevent persistent links.
1024 | ; http://php.net/odbc.allow-persistent
1025 | odbc.allow_persistent = On
1026 |
1027 | ; Check that a connection is still valid before reuse.
1028 | ; http://php.net/odbc.check-persistent
1029 | odbc.check_persistent = On
1030 |
1031 | ; Maximum number of persistent links. -1 means no limit.
1032 | ; http://php.net/odbc.max-persistent
1033 | odbc.max_persistent = -1
1034 |
1035 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1036 | ; http://php.net/odbc.max-links
1037 | odbc.max_links = -1
1038 |
1039 | ; Handling of LONG fields. Returns number of bytes to variables. 0 means
1040 | ; passthru.
1041 | ; http://php.net/odbc.defaultlrl
1042 | odbc.defaultlrl = 4096
1043 |
1044 | ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
1045 | ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
1046 | ; of odbc.defaultlrl and odbc.defaultbinmode
1047 | ; http://php.net/odbc.defaultbinmode
1048 | odbc.defaultbinmode = 1
1049 |
1050 | ;birdstep.max_links = -1
1051 |
1052 | [Interbase]
1053 | ; Allow or prevent persistent links.
1054 | ibase.allow_persistent = 1
1055 |
1056 | ; Maximum number of persistent links. -1 means no limit.
1057 | ibase.max_persistent = -1
1058 |
1059 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1060 | ibase.max_links = -1
1061 |
1062 | ; Default database name for ibase_connect().
1063 | ;ibase.default_db =
1064 |
1065 | ; Default username for ibase_connect().
1066 | ;ibase.default_user =
1067 |
1068 | ; Default password for ibase_connect().
1069 | ;ibase.default_password =
1070 |
1071 | ; Default charset for ibase_connect().
1072 | ;ibase.default_charset =
1073 |
1074 | ; Default timestamp format.
1075 | ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
1076 |
1077 | ; Default date format.
1078 | ibase.dateformat = "%Y-%m-%d"
1079 |
1080 | ; Default time format.
1081 | ibase.timeformat = "%H:%M:%S"
1082 |
1083 | [MySQL]
1084 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1085 | ; http://php.net/mysql.allow_local_infile
1086 | mysql.allow_local_infile = On
1087 |
1088 | ; Allow or prevent persistent links.
1089 | ; http://php.net/mysql.allow-persistent
1090 | mysql.allow_persistent = On
1091 |
1092 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1093 | ; http://php.net/mysql.cache_size
1094 | mysql.cache_size = 2000
1095 |
1096 | ; Maximum number of persistent links. -1 means no limit.
1097 | ; http://php.net/mysql.max-persistent
1098 | mysql.max_persistent = -1
1099 |
1100 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1101 | ; http://php.net/mysql.max-links
1102 | mysql.max_links = -1
1103 |
1104 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use
1105 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1106 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1107 | ; at MYSQL_PORT.
1108 | ; http://php.net/mysql.default-port
1109 | mysql.default_port =
1110 |
1111 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1112 | ; MySQL defaults.
1113 | ; http://php.net/mysql.default-socket
1114 | mysql.default_socket =
1115 |
1116 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1117 | ; http://php.net/mysql.default-host
1118 | mysql.default_host =
1119 |
1120 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1121 | ; http://php.net/mysql.default-user
1122 | mysql.default_user =
1123 |
1124 | ; Default password for mysql_connect() (doesn't apply in safe mode).
1125 | ; Note that this is generally a *bad* idea to store passwords in this file.
1126 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
1127 | ; and reveal this password! And of course, any users with read access to this
1128 | ; file will be able to reveal the password as well.
1129 | ; http://php.net/mysql.default-password
1130 | mysql.default_password =
1131 |
1132 | ; Maximum time (in seconds) for connect timeout. -1 means no limit
1133 | ; http://php.net/mysql.connect-timeout
1134 | mysql.connect_timeout = 60
1135 |
1136 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
1137 | ; SQL-Errors will be displayed.
1138 | ; http://php.net/mysql.trace-mode
1139 | mysql.trace_mode = Off
1140 |
1141 | [MySQLi]
1142 |
1143 | ; Maximum number of persistent links. -1 means no limit.
1144 | ; http://php.net/mysqli.max-persistent
1145 | mysqli.max_persistent = -1
1146 |
1147 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
1148 | ; http://php.net/mysqli.allow_local_infile
1149 | ;mysqli.allow_local_infile = On
1150 |
1151 | ; Allow or prevent persistent links.
1152 | ; http://php.net/mysqli.allow-persistent
1153 | mysqli.allow_persistent = On
1154 |
1155 | ; Maximum number of links. -1 means no limit.
1156 | ; http://php.net/mysqli.max-links
1157 | mysqli.max_links = -1
1158 |
1159 | ; If mysqlnd is used: Number of cache slots for the internal result set cache
1160 | ; http://php.net/mysqli.cache_size
1161 | mysqli.cache_size = 2000
1162 |
1163 | ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
1164 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
1165 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
1166 | ; at MYSQL_PORT.
1167 | ; http://php.net/mysqli.default-port
1168 | mysqli.default_port = 3306
1169 |
1170 | ; Default socket name for local MySQL connects. If empty, uses the built-in
1171 | ; MySQL defaults.
1172 | ; http://php.net/mysqli.default-socket
1173 | mysqli.default_socket =
1174 |
1175 | ; Default host for mysql_connect() (doesn't apply in safe mode).
1176 | ; http://php.net/mysqli.default-host
1177 | mysqli.default_host =
1178 |
1179 | ; Default user for mysql_connect() (doesn't apply in safe mode).
1180 | ; http://php.net/mysqli.default-user
1181 | mysqli.default_user =
1182 |
1183 | ; Default password for mysqli_connect() (doesn't apply in safe mode).
1184 | ; Note that this is generally a *bad* idea to store passwords in this file.
1185 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
1186 | ; and reveal this password! And of course, any users with read access to this
1187 | ; file will be able to reveal the password as well.
1188 | ; http://php.net/mysqli.default-pw
1189 | mysqli.default_pw =
1190 |
1191 | ; Allow or prevent reconnect
1192 | mysqli.reconnect = Off
1193 |
1194 | [mysqlnd]
1195 | ; Enable / Disable collection of general statistics by mysqlnd which can be
1196 | ; used to tune and monitor MySQL operations.
1197 | ; http://php.net/mysqlnd.collect_statistics
1198 | mysqlnd.collect_statistics = On
1199 |
1200 | ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
1201 | ; used to tune and monitor MySQL operations.
1202 | ; http://php.net/mysqlnd.collect_memory_statistics
1203 | mysqlnd.collect_memory_statistics = Off
1204 |
1205 | ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
1206 | ; http://php.net/mysqlnd.net_cmd_buffer_size
1207 | ;mysqlnd.net_cmd_buffer_size = 2048
1208 |
1209 | ; Size of a pre-allocated buffer used for reading data sent by the server in
1210 | ; bytes.
1211 | ; http://php.net/mysqlnd.net_read_buffer_size
1212 | ;mysqlnd.net_read_buffer_size = 32768
1213 |
1214 | [OCI8]
1215 |
1216 | ; Connection: Enables privileged connections using external
1217 | ; credentials (OCI_SYSOPER, OCI_SYSDBA)
1218 | ; http://php.net/oci8.privileged-connect
1219 | ;oci8.privileged_connect = Off
1220 |
1221 | ; Connection: The maximum number of persistent OCI8 connections per
1222 | ; process. Using -1 means no limit.
1223 | ; http://php.net/oci8.max-persistent
1224 | ;oci8.max_persistent = -1
1225 |
1226 | ; Connection: The maximum number of seconds a process is allowed to
1227 | ; maintain an idle persistent connection. Using -1 means idle
1228 | ; persistent connections will be maintained forever.
1229 | ; http://php.net/oci8.persistent-timeout
1230 | ;oci8.persistent_timeout = -1
1231 |
1232 | ; Connection: The number of seconds that must pass before issuing a
1233 | ; ping during oci_pconnect() to check the connection validity. When
1234 | ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
1235 | ; pings completely.
1236 | ; http://php.net/oci8.ping-interval
1237 | ;oci8.ping_interval = 60
1238 |
1239 | ; Connection: Set this to a user chosen connection class to be used
1240 | ; for all pooled server requests with Oracle 11g Database Resident
1241 | ; Connection Pooling (DRCP). To use DRCP, this value should be set to
1242 | ; the same string for all web servers running the same application,
1243 | ; the database pool must be configured, and the connection string must
1244 | ; specify to use a pooled server.
1245 | ;oci8.connection_class =
1246 |
1247 | ; High Availability: Using On lets PHP receive Fast Application
1248 | ; Notification (FAN) events generated when a database node fails. The
1249 | ; database must also be configured to post FAN events.
1250 | ;oci8.events = Off
1251 |
1252 | ; Tuning: This option enables statement caching, and specifies how
1253 | ; many statements to cache. Using 0 disables statement caching.
1254 | ; http://php.net/oci8.statement-cache-size
1255 | ;oci8.statement_cache_size = 20
1256 |
1257 | ; Tuning: Enables statement prefetching and sets the default number of
1258 | ; rows that will be fetched automatically after statement execution.
1259 | ; http://php.net/oci8.default-prefetch
1260 | ;oci8.default_prefetch = 100
1261 |
1262 | ; Compatibility. Using On means oci_close() will not close
1263 | ; oci_connect() and oci_new_connect() connections.
1264 | ; http://php.net/oci8.old-oci-close-semantics
1265 | ;oci8.old_oci_close_semantics = Off
1266 |
1267 | [PostgreSQL]
1268 | ; Allow or prevent persistent links.
1269 | ; http://php.net/pgsql.allow-persistent
1270 | pgsql.allow_persistent = On
1271 |
1272 | ; Detect broken persistent links always with pg_pconnect().
1273 | ; Auto reset feature requires a little overheads.
1274 | ; http://php.net/pgsql.auto-reset-persistent
1275 | pgsql.auto_reset_persistent = Off
1276 |
1277 | ; Maximum number of persistent links. -1 means no limit.
1278 | ; http://php.net/pgsql.max-persistent
1279 | pgsql.max_persistent = -1
1280 |
1281 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1282 | ; http://php.net/pgsql.max-links
1283 | pgsql.max_links = -1
1284 |
1285 | ; Ignore PostgreSQL backends Notice message or not.
1286 | ; Notice message logging require a little overheads.
1287 | ; http://php.net/pgsql.ignore-notice
1288 | pgsql.ignore_notice = 0
1289 |
1290 | ; Log PostgreSQL backends Notice message or not.
1291 | ; Unless pgsql.ignore_notice=0, module cannot log notice message.
1292 | ; http://php.net/pgsql.log-notice
1293 | pgsql.log_notice = 0
1294 |
1295 | [Sybase-CT]
1296 | ; Allow or prevent persistent links.
1297 | ; http://php.net/sybct.allow-persistent
1298 | sybct.allow_persistent = On
1299 |
1300 | ; Maximum number of persistent links. -1 means no limit.
1301 | ; http://php.net/sybct.max-persistent
1302 | sybct.max_persistent = -1
1303 |
1304 | ; Maximum number of links (persistent + non-persistent). -1 means no limit.
1305 | ; http://php.net/sybct.max-links
1306 | sybct.max_links = -1
1307 |
1308 | ; Minimum server message severity to display.
1309 | ; http://php.net/sybct.min-server-severity
1310 | sybct.min_server_severity = 10
1311 |
1312 | ; Minimum client message severity to display.
1313 | ; http://php.net/sybct.min-client-severity
1314 | sybct.min_client_severity = 10
1315 |
1316 | ; Set per-context timeout
1317 | ; http://php.net/sybct.timeout
1318 | ;sybct.timeout=
1319 |
1320 | ;sybct.packet_size
1321 |
1322 | ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
1323 | ; Default: one minute
1324 | ;sybct.login_timeout=
1325 |
1326 | ; The name of the host you claim to be connecting from, for display by sp_who.
1327 | ; Default: none
1328 | ;sybct.hostname=
1329 |
1330 | ; Allows you to define how often deadlocks are to be retried. -1 means "forever".
1331 | ; Default: 0
1332 | ;sybct.deadlock_retry_count=
1333 |
1334 | [bcmath]
1335 | ; Number of decimal digits for all bcmath functions.
1336 | ; http://php.net/bcmath.scale
1337 | bcmath.scale = 0
1338 |
1339 | [browscap]
1340 | ; http://php.net/browscap
1341 | ;browscap = extra/browscap.ini
1342 |
1343 | [Session]
1344 | ; Handler used to store/retrieve data.
1345 | ; http://php.net/session.save-handler
1346 | session.save_handler = files
1347 |
1348 | ; Argument passed to save_handler. In the case of files, this is the path
1349 | ; where data files are stored. Note: Windows users have to change this
1350 | ; variable in order to use PHP's session functions.
1351 | ;
1352 | ; The path can be defined as:
1353 | ;
1354 | ; session.save_path = "N;/path"
1355 | ;
1356 | ; where N is an integer. Instead of storing all the session files in
1357 | ; /path, what this will do is use subdirectories N-levels deep, and
1358 | ; store the session data in those directories. This is useful if
1359 | ; your OS has problems with many files in one directory, and is
1360 | ; a more efficient layout for servers that handle many sessions.
1361 | ;
1362 | ; NOTE 1: PHP will not create this directory structure automatically.
1363 | ; You can use the script in the ext/session dir for that purpose.
1364 | ; NOTE 2: See the section on garbage collection below if you choose to
1365 | ; use subdirectories for session storage
1366 | ;
1367 | ; The file storage module creates files using mode 600 by default.
1368 | ; You can change that by using
1369 | ;
1370 | ; session.save_path = "N;MODE;/path"
1371 | ;
1372 | ; where MODE is the octal representation of the mode. Note that this
1373 | ; does not overwrite the process's umask.
1374 | ; http://php.net/session.save-path
1375 | ;session.save_path = "/var/lib/php5/sessions"
1376 |
1377 | ; Whether to use strict session mode.
1378 | ; Strict session mode does not accept uninitialized session ID and regenerate
1379 | ; session ID if browser sends uninitialized session ID. Strict mode protects
1380 | ; applications from session fixation via session adoption vulnerability. It is
1381 | ; disabled by default for maximum compatibility, but enabling it is encouraged.
1382 | ; https://wiki.php.net/rfc/strict_sessions
1383 | session.use_strict_mode = 0
1384 |
1385 | ; Whether to use cookies.
1386 | ; http://php.net/session.use-cookies
1387 | session.use_cookies = 1
1388 |
1389 | ; http://php.net/session.cookie-secure
1390 | ;session.cookie_secure =
1391 |
1392 | ; This option forces PHP to fetch and use a cookie for storing and maintaining
1393 | ; the session id. We encourage this operation as it's very helpful in combating
1394 | ; session hijacking when not specifying and managing your own session id. It is
1395 | ; not the be-all and end-all of session hijacking defense, but it's a good start.
1396 | ; http://php.net/session.use-only-cookies
1397 | session.use_only_cookies = 1
1398 |
1399 | ; Name of the session (used as cookie name).
1400 | ; http://php.net/session.name
1401 | session.name = PHPSESSID
1402 |
1403 | ; Initialize session on request startup.
1404 | ; http://php.net/session.auto-start
1405 | session.auto_start = 0
1406 |
1407 | ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
1408 | ; http://php.net/session.cookie-lifetime
1409 | session.cookie_lifetime = 0
1410 |
1411 | ; The path for which the cookie is valid.
1412 | ; http://php.net/session.cookie-path
1413 | session.cookie_path = /
1414 |
1415 | ; The domain for which the cookie is valid.
1416 | ; http://php.net/session.cookie-domain
1417 | session.cookie_domain =
1418 |
1419 | ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
1420 | ; http://php.net/session.cookie-httponly
1421 | session.cookie_httponly =
1422 |
1423 | ; Handler used to serialize data. php is the standard serializer of PHP.
1424 | ; http://php.net/session.serialize-handler
1425 | session.serialize_handler = php
1426 |
1427 | ; Defines the probability that the 'garbage collection' process is started
1428 | ; on every session initialization. The probability is calculated by using
1429 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
1430 | ; and gc_divisor is the denominator in the equation. Setting this value to 1
1431 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1432 | ; the gc will run on any give request.
1433 | ; Default Value: 1
1434 | ; Development Value: 1
1435 | ; Production Value: 1
1436 | ; http://php.net/session.gc-probability
1437 | session.gc_probability = 0
1438 |
1439 | ; Defines the probability that the 'garbage collection' process is started on every
1440 | ; session initialization. The probability is calculated by using the following equation:
1441 | ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
1442 | ; session.gc_divisor is the denominator in the equation. Setting this value to 1
1443 | ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1444 | ; the gc will run on any give request. Increasing this value to 1000 will give you
1445 | ; a 0.1% chance the gc will run on any give request. For high volume production servers,
1446 | ; this is a more efficient approach.
1447 | ; Default Value: 100
1448 | ; Development Value: 1000
1449 | ; Production Value: 1000
1450 | ; http://php.net/session.gc-divisor
1451 | session.gc_divisor = 1000
1452 |
1453 | ; After this number of seconds, stored data will be seen as 'garbage' and
1454 | ; cleaned up by the garbage collection process.
1455 | ; http://php.net/session.gc-maxlifetime
1456 | session.gc_maxlifetime = 1440
1457 |
1458 | ; NOTE: If you are using the subdirectory option for storing session files
1459 | ; (see session.save_path above), then garbage collection does *not*
1460 | ; happen automatically. You will need to do your own garbage
1461 | ; collection through a shell script, cron entry, or some other method.
1462 | ; For example, the following script would is the equivalent of
1463 | ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
1464 | ; find /path/to/sessions -cmin +24 -type f | xargs rm
1465 |
1466 | ; Check HTTP Referer to invalidate externally stored URLs containing ids.
1467 | ; HTTP_REFERER has to contain this substring for the session to be
1468 | ; considered as valid.
1469 | ; http://php.net/session.referer-check
1470 | session.referer_check =
1471 |
1472 | ; How many bytes to read from the file.
1473 | ; http://php.net/session.entropy-length
1474 | ;session.entropy_length = 32
1475 |
1476 | ; Specified here to create the session id.
1477 | ; http://php.net/session.entropy-file
1478 | ; Defaults to /dev/urandom
1479 | ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
1480 | ; If neither are found at compile time, the default is no entropy file.
1481 | ; On windows, setting the entropy_length setting will activate the
1482 | ; Windows random source (using the CryptoAPI)
1483 | ;session.entropy_file = /dev/urandom
1484 |
1485 | ; Set to {nocache,private,public,} to determine HTTP caching aspects
1486 | ; or leave this empty to avoid sending anti-caching headers.
1487 | ; http://php.net/session.cache-limiter
1488 | session.cache_limiter = nocache
1489 |
1490 | ; Document expires after n minutes.
1491 | ; http://php.net/session.cache-expire
1492 | session.cache_expire = 180
1493 |
1494 | ; trans sid support is disabled by default.
1495 | ; Use of trans sid may risk your users' security.
1496 | ; Use this option with caution.
1497 | ; - User may send URL contains active session ID
1498 | ; to other person via. email/irc/etc.
1499 | ; - URL that contains active session ID may be stored
1500 | ; in publicly accessible computer.
1501 | ; - User may access your site with the same session ID
1502 | ; always using URL stored in browser's history or bookmarks.
1503 | ; http://php.net/session.use-trans-sid
1504 | session.use_trans_sid = 0
1505 |
1506 | ; Select a hash function for use in generating session ids.
1507 | ; Possible Values
1508 | ; 0 (MD5 128 bits)
1509 | ; 1 (SHA-1 160 bits)
1510 | ; This option may also be set to the name of any hash function supported by
1511 | ; the hash extension. A list of available hashes is returned by the hash_algos()
1512 | ; function.
1513 | ; http://php.net/session.hash-function
1514 | session.hash_function = 0
1515 |
1516 | ; Define how many bits are stored in each character when converting
1517 | ; the binary hash data to something readable.
1518 | ; Possible values:
1519 | ; 4 (4 bits: 0-9, a-f)
1520 | ; 5 (5 bits: 0-9, a-v)
1521 | ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
1522 | ; Default Value: 4
1523 | ; Development Value: 5
1524 | ; Production Value: 5
1525 | ; http://php.net/session.hash-bits-per-character
1526 | session.hash_bits_per_character = 5
1527 |
1528 | ; The URL rewriter will look for URLs in a defined set of HTML tags.
1529 | ; form/fieldset are special; if you include them here, the rewriter will
1530 | ; add a hidden field with the info which is otherwise appended
1531 | ; to URLs. If you want XHTML conformity, remove the form entry.
1532 | ; Note that all valid entries require a "=", even if no value follows.
1533 | ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
1534 | ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1535 | ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
1536 | ; http://php.net/url-rewriter.tags
1537 | url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
1538 |
1539 | ; Enable upload progress tracking in $_SESSION
1540 | ; Default Value: On
1541 | ; Development Value: On
1542 | ; Production Value: On
1543 | ; http://php.net/session.upload-progress.enabled
1544 | ;session.upload_progress.enabled = On
1545 |
1546 | ; Cleanup the progress information as soon as all POST data has been read
1547 | ; (i.e. upload completed).
1548 | ; Default Value: On
1549 | ; Development Value: On
1550 | ; Production Value: On
1551 | ; http://php.net/session.upload-progress.cleanup
1552 | ;session.upload_progress.cleanup = On
1553 |
1554 | ; A prefix used for the upload progress key in $_SESSION
1555 | ; Default Value: "upload_progress_"
1556 | ; Development Value: "upload_progress_"
1557 | ; Production Value: "upload_progress_"
1558 | ; http://php.net/session.upload-progress.prefix
1559 | ;session.upload_progress.prefix = "upload_progress_"
1560 |
1561 | ; The index name (concatenated with the prefix) in $_SESSION
1562 | ; containing the upload progress information
1563 | ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
1564 | ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
1565 | ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
1566 | ; http://php.net/session.upload-progress.name
1567 | ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"
1568 |
1569 | ; How frequently the upload progress should be updated.
1570 | ; Given either in percentages (per-file), or in bytes
1571 | ; Default Value: "1%"
1572 | ; Development Value: "1%"
1573 | ; Production Value: "1%"
1574 | ; http://php.net/session.upload-progress.freq
1575 | ;session.upload_progress.freq = "1%"
1576 |
1577 | ; The minimum delay between updates, in seconds
1578 | ; Default Value: 1
1579 | ; Development Value: 1
1580 | ; Production Value: 1
1581 | ; http://php.net/session.upload-progress.min-freq
1582 | ;session.upload_progress.min_freq = "1"
1583 |
1584 | [MSSQL]
1585 | ; Allow or prevent persistent links.
1586 | mssql.allow_persistent = On
1587 |
1588 | ; Maximum number of persistent links. -1 means no limit.
1589 | mssql.max_persistent = -1
1590 |
1591 | ; Maximum number of links (persistent+non persistent). -1 means no limit.
1592 | mssql.max_links = -1
1593 |
1594 | ; Minimum error severity to display.
1595 | mssql.min_error_severity = 10
1596 |
1597 | ; Minimum message severity to display.
1598 | mssql.min_message_severity = 10
1599 |
1600 | ; Compatibility mode with old versions of PHP 3.0.
1601 | mssql.compatibility_mode = Off
1602 |
1603 | ; Connect timeout
1604 | ;mssql.connect_timeout = 5
1605 |
1606 | ; Query timeout
1607 | ;mssql.timeout = 60
1608 |
1609 | ; Valid range 0 - 2147483647. Default = 4096.
1610 | ;mssql.textlimit = 4096
1611 |
1612 | ; Valid range 0 - 2147483647. Default = 4096.
1613 | ;mssql.textsize = 4096
1614 |
1615 | ; Limits the number of records in each batch. 0 = all records in one batch.
1616 | ;mssql.batchsize = 0
1617 |
1618 | ; Specify how datetime and datetim4 columns are returned
1619 | ; On => Returns data converted to SQL server settings
1620 | ; Off => Returns values as YYYY-MM-DD hh:mm:ss
1621 | ;mssql.datetimeconvert = On
1622 |
1623 | ; Use NT authentication when connecting to the server
1624 | mssql.secure_connection = Off
1625 |
1626 | ; Specify max number of processes. -1 = library default
1627 | ; msdlib defaults to 25
1628 | ; FreeTDS defaults to 4096
1629 | ;mssql.max_procs = -1
1630 |
1631 | ; Specify client character set.
1632 | ; If empty or not set the client charset from freetds.conf is used
1633 | ; This is only used when compiled with FreeTDS
1634 | ;mssql.charset = "ISO-8859-1"
1635 |
1636 | [Assertion]
1637 | ; Assert(expr); active by default.
1638 | ; http://php.net/assert.active
1639 | ;assert.active = On
1640 |
1641 | ; Issue a PHP warning for each failed assertion.
1642 | ; http://php.net/assert.warning
1643 | ;assert.warning = On
1644 |
1645 | ; Don't bail out by default.
1646 | ; http://php.net/assert.bail
1647 | ;assert.bail = Off
1648 |
1649 | ; User-function to be called if an assertion fails.
1650 | ; http://php.net/assert.callback
1651 | ;assert.callback = 0
1652 |
1653 | ; Eval the expression with current error_reporting(). Set to true if you want
1654 | ; error_reporting(0) around the eval().
1655 | ; http://php.net/assert.quiet-eval
1656 | ;assert.quiet_eval = 0
1657 |
1658 | [COM]
1659 | ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
1660 | ; http://php.net/com.typelib-file
1661 | ;com.typelib_file =
1662 |
1663 | ; allow Distributed-COM calls
1664 | ; http://php.net/com.allow-dcom
1665 | ;com.allow_dcom = true
1666 |
1667 | ; autoregister constants of a components typlib on com_load()
1668 | ; http://php.net/com.autoregister-typelib
1669 | ;com.autoregister_typelib = true
1670 |
1671 | ; register constants casesensitive
1672 | ; http://php.net/com.autoregister-casesensitive
1673 | ;com.autoregister_casesensitive = false
1674 |
1675 | ; show warnings on duplicate constant registrations
1676 | ; http://php.net/com.autoregister-verbose
1677 | ;com.autoregister_verbose = true
1678 |
1679 | ; The default character set code-page to use when passing strings to and from COM objects.
1680 | ; Default: system ANSI code page
1681 | ;com.code_page=
1682 |
1683 | [mbstring]
1684 | ; language for internal character representation.
1685 | ; This affects mb_send_mail() and mbstrig.detect_order.
1686 | ; http://php.net/mbstring.language
1687 | ;mbstring.language = Japanese
1688 |
1689 | ; Use of this INI entry is deprecated, use global internal_encoding instead.
1690 | ; internal/script encoding.
1691 | ; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
1692 | ; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
1693 | ; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
1694 | ;mbstring.internal_encoding =
1695 |
1696 | ; Use of this INI entry is deprecated, use global input_encoding instead.
1697 | ; http input encoding.
1698 | ; mbstring.encoding_traslation = On is needed to use this setting.
1699 | ; If empty, default_charset or input_encoding or mbstring.input is used.
1700 | ; The precedence is: default_charset < intput_encoding < mbsting.http_input
1701 | ; http://php.net/mbstring.http-input
1702 | ;mbstring.http_input =
1703 |
1704 | ; Use of this INI entry is deprecated, use global output_encoding instead.
1705 | ; http output encoding.
1706 | ; mb_output_handler must be registered as output buffer to function.
1707 | ; If empty, default_charset or output_encoding or mbstring.http_output is used.
1708 | ; The precedence is: default_charset < output_encoding < mbstring.http_output
1709 | ; To use an output encoding conversion, mbstring's output handler must be set
1710 | ; otherwise output encoding conversion cannot be performed.
1711 | ; http://php.net/mbstring.http-output
1712 | ;mbstring.http_output =
1713 |
1714 | ; enable automatic encoding translation according to
1715 | ; mbstring.internal_encoding setting. Input chars are
1716 | ; converted to internal encoding by setting this to On.
1717 | ; Note: Do _not_ use automatic encoding translation for
1718 | ; portable libs/applications.
1719 | ; http://php.net/mbstring.encoding-translation
1720 | ;mbstring.encoding_translation = Off
1721 |
1722 | ; automatic encoding detection order.
1723 | ; "auto" detect order is changed according to mbstring.language
1724 | ; http://php.net/mbstring.detect-order
1725 | ;mbstring.detect_order = auto
1726 |
1727 | ; substitute_character used when character cannot be converted
1728 | ; one from another
1729 | ; http://php.net/mbstring.substitute-character
1730 | ;mbstring.substitute_character = none
1731 |
1732 | ; overload(replace) single byte functions by mbstring functions.
1733 | ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
1734 | ; etc. Possible values are 0,1,2,4 or combination of them.
1735 | ; For example, 7 for overload everything.
1736 | ; 0: No overload
1737 | ; 1: Overload mail() function
1738 | ; 2: Overload str*() functions
1739 | ; 4: Overload ereg*() functions
1740 | ; http://php.net/mbstring.func-overload
1741 | ;mbstring.func_overload = 0
1742 |
1743 | ; enable strict encoding detection.
1744 | ; Default: Off
1745 | ;mbstring.strict_detection = On
1746 |
1747 | ; This directive specifies the regex pattern of content types for which mb_output_handler()
1748 | ; is activated.
1749 | ; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
1750 | ;mbstring.http_output_conv_mimetype=
1751 |
1752 | [gd]
1753 | ; Tell the jpeg decode to ignore warnings and try to create
1754 | ; a gd image. The warning will then be displayed as notices
1755 | ; disabled by default
1756 | ; http://php.net/gd.jpeg-ignore-warning
1757 | ;gd.jpeg_ignore_warning = 0
1758 |
1759 | [exif]
1760 | ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
1761 | ; With mbstring support this will automatically be converted into the encoding
1762 | ; given by corresponding encode setting. When empty mbstring.internal_encoding
1763 | ; is used. For the decode settings you can distinguish between motorola and
1764 | ; intel byte order. A decode setting cannot be empty.
1765 | ; http://php.net/exif.encode-unicode
1766 | ;exif.encode_unicode = ISO-8859-15
1767 |
1768 | ; http://php.net/exif.decode-unicode-motorola
1769 | ;exif.decode_unicode_motorola = UCS-2BE
1770 |
1771 | ; http://php.net/exif.decode-unicode-intel
1772 | ;exif.decode_unicode_intel = UCS-2LE
1773 |
1774 | ; http://php.net/exif.encode-jis
1775 | ;exif.encode_jis =
1776 |
1777 | ; http://php.net/exif.decode-jis-motorola
1778 | ;exif.decode_jis_motorola = JIS
1779 |
1780 | ; http://php.net/exif.decode-jis-intel
1781 | ;exif.decode_jis_intel = JIS
1782 |
1783 | [Tidy]
1784 | ; The path to a default tidy configuration file to use when using tidy
1785 | ; http://php.net/tidy.default-config
1786 | ;tidy.default_config = /usr/local/lib/php/default.tcfg
1787 |
1788 | ; Should tidy clean and repair output automatically?
1789 | ; WARNING: Do not use this option if you are generating non-html content
1790 | ; such as dynamic images
1791 | ; http://php.net/tidy.clean-output
1792 | tidy.clean_output = Off
1793 |
1794 | [soap]
1795 | ; Enables or disables WSDL caching feature.
1796 | ; http://php.net/soap.wsdl-cache-enabled
1797 | soap.wsdl_cache_enabled=1
1798 |
1799 | ; Sets the directory name where SOAP extension will put cache files.
1800 | ; http://php.net/soap.wsdl-cache-dir
1801 | soap.wsdl_cache_dir="/tmp"
1802 |
1803 | ; (time to live) Sets the number of second while cached file will be used
1804 | ; instead of original one.
1805 | ; http://php.net/soap.wsdl-cache-ttl
1806 | soap.wsdl_cache_ttl=86400
1807 |
1808 | ; Sets the size of the cache limit. (Max. number of WSDL files to cache)
1809 | soap.wsdl_cache_limit = 5
1810 |
1811 | [sysvshm]
1812 | ; A default size of the shared memory segment
1813 | ;sysvshm.init_mem = 10000
1814 |
1815 | [ldap]
1816 | ; Sets the maximum number of open links or -1 for unlimited.
1817 | ldap.max_links = -1
1818 |
1819 | [mcrypt]
1820 | ; For more information about mcrypt settings see http://php.net/mcrypt-module-open
1821 |
1822 | ; Directory where to load mcrypt algorithms
1823 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1824 | ;mcrypt.algorithms_dir=
1825 |
1826 | ; Directory where to load mcrypt modes
1827 | ; Default: Compiled in into libmcrypt (usually /usr/local/lib/libmcrypt)
1828 | ;mcrypt.modes_dir=
1829 |
1830 | [dba]
1831 | ;dba.default_handler=
1832 |
1833 | [opcache]
1834 | ; Determines if Zend OPCache is enabled
1835 | opcache.enable=1
1836 |
1837 | ; Determines if Zend OPCache is enabled for the CLI version of PHP
1838 | ;opcache.enable_cli=0
1839 |
1840 | ; The OPcache shared memory storage size.
1841 | ;opcache.memory_consumption=64
1842 |
1843 | ; The amount of memory for interned strings in Mbytes.
1844 | ;opcache.interned_strings_buffer=4
1845 |
1846 | ; The maximum number of keys (scripts) in the OPcache hash table.
1847 | ; Only numbers between 200 and 100000 are allowed.
1848 | opcache.max_accelerated_files=8000
1849 |
1850 | ; The maximum percentage of "wasted" memory until a restart is scheduled.
1851 | ;opcache.max_wasted_percentage=5
1852 |
1853 | ; When this directive is enabled, the OPcache appends the current working
1854 | ; directory to the script key, thus eliminating possible collisions between
1855 | ; files with the same name (basename). Disabling the directive improves
1856 | ; performance, but may break existing applications.
1857 | ;opcache.use_cwd=1
1858 |
1859 | ; When disabled, you must reset the OPcache manually or restart the
1860 | ; webserver for changes to the filesystem to take effect.
1861 | ;opcache.validate_timestamps=1
1862 |
1863 | ; How often (in seconds) to check file timestamps for changes to the shared
1864 | ; memory storage allocation. ("1" means validate once per second, but only
1865 | ; once per request. "0" means always validate)
1866 | ;opcache.revalidate_freq=2
1867 |
1868 | ; Enables or disables file search in include_path optimization
1869 | ;opcache.revalidate_path=0
1870 |
1871 | ; If disabled, all PHPDoc comments are dropped from the code to reduce the
1872 | ; size of the optimized code.
1873 | ;opcache.save_comments=1
1874 |
1875 | ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments"
1876 | ; may be always stored (save_comments=1), but not loaded by applications
1877 | ; that don't need them anyway.
1878 | ;opcache.load_comments=1
1879 |
1880 | ; If enabled, a fast shutdown sequence is used for the accelerated code
1881 | opcache.fast_shutdown=1
1882 |
1883 | ; Allow file existence override (file_exists, etc.) performance feature.
1884 | ;opcache.enable_file_override=0
1885 |
1886 | ; A bitmask, where each bit enables or disables the appropriate OPcache
1887 | ; passes
1888 | ;opcache.optimization_level=0xffffffff
1889 |
1890 | ;opcache.inherited_hack=1
1891 | ;opcache.dups_fix=0
1892 |
1893 | ; The location of the OPcache blacklist file (wildcards allowed).
1894 | ; Each OPcache blacklist file is a text file that holds the names of files
1895 | ; that should not be accelerated. The file format is to add each filename
1896 | ; to a new line. The filename may be a full path or just a file prefix
1897 | ; (i.e., /var/www/x blacklists all the files and directories in /var/www
1898 | ; that start with 'x'). Line starting with a ; are ignored (comments).
1899 | ;opcache.blacklist_filename=
1900 |
1901 | ; Allows exclusion of large files from being cached. By default all files
1902 | ; are cached.
1903 | ;opcache.max_file_size=0
1904 |
1905 | ; Check the cache checksum each N requests.
1906 | ; The default value of "0" means that the checks are disabled.
1907 | ;opcache.consistency_checks=0
1908 |
1909 | ; How long to wait (in seconds) for a scheduled restart to begin if the cache
1910 | ; is not being accessed.
1911 | ;opcache.force_restart_timeout=180
1912 |
1913 | ; OPcache error_log file name. Empty string assumes "stderr".
1914 | ;opcache.error_log=
1915 |
1916 | ; All OPcache errors go to the Web server log.
1917 | ; By default, only fatal errors (level 0) or errors (level 1) are logged.
1918 | ; You can also enable warnings (level 2), info messages (level 3) or
1919 | ; debug messages (level 4).
1920 | ;opcache.log_verbosity_level=1
1921 |
1922 | ; Preferred Shared Memory back-end. Leave empty and let the system decide.
1923 | ;opcache.preferred_memory_model=
1924 |
1925 | ; Protect the shared memory from unexpected writing during script execution.
1926 | ; Useful for internal debugging only.
1927 | ;opcache.protect_memory=0
1928 |
1929 | [curl]
1930 | ; A default value for the CURLOPT_CAINFO option. This is required to be an
1931 | ; absolute path.
1932 | ;curl.cainfo =
1933 |
1934 | [openssl]
1935 | ; The location of a Certificate Authority (CA) file on the local filesystem
1936 | ; to use when verifying the identity of SSL/TLS peers. Most users should
1937 | ; not specify a value for this directive as PHP will attempt to use the
1938 | ; OS-managed cert stores in its absence. If specified, this value may still
1939 | ; be overridden on a per-stream basis via the "cafile" SSL stream context
1940 | ; option.
1941 | ;openssl.cafile=
1942 |
1943 | ; If openssl.cafile is not specified or if the CA file is not found, the
1944 | ; directory pointed to by openssl.capath is searched for a suitable
1945 | ; certificate. This value must be a correctly hashed certificate directory.
1946 | ; Most users should not specify a value for this directive as PHP will
1947 | ; attempt to use the OS-managed cert stores in its absence. If specified,
1948 | ; this value may still be overridden on a per-stream basis via the "capath"
1949 | ; SSL stream context option.
1950 | ;openssl.capath=
1951 |
1952 | ; Local Variables:
1953 | ; tab-width: 4
1954 | ; End:
1955 |
--------------------------------------------------------------------------------
/.env.dist:
--------------------------------------------------------------------------------
1 | # This file is a "template" of which env vars need to be defined for your application
2 | # Copy this file to .env file for development, create environment variables when deploying to production
3 | # https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
4 |
5 | ###> symfony/framework-bundle ###
6 | APP_ENV=dev
7 | APP_SECRET=9ec51e5ad74f5fc64e8a839829a5b239
8 | #TRUSTED_PROXIES=127.0.0.1,127.0.0.2
9 | #TRUSTED_HOSTS=localhost,example.com
10 | ###< symfony/framework-bundle ###
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ###> symfony/framework-bundle ###
2 | /.env
3 | /public/bundles/
4 | /var/
5 | /vendor/
6 | ###< symfony/framework-bundle ###
7 |
8 | ###> romaricp ###
9 | .idea
10 | .docker/data/
11 | ###< romaricp ###
12 |
--------------------------------------------------------------------------------
/bin/console:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | load(__DIR__.'/../.env');
23 | }
24 |
25 | $input = new ArgvInput();
26 | $env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev', true);
27 | $debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)) && !$input->hasParameterOption('--no-debug', true);
28 |
29 | if ($debug) {
30 | umask(0000);
31 |
32 | if (class_exists(Debug::class)) {
33 | Debug::enable();
34 | }
35 | }
36 |
37 | $kernel = new Kernel($env, $debug);
38 | $application = new Application($kernel);
39 | $application->run($input);
40 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "project",
3 | "license": "proprietary",
4 | "require": {
5 | "php": "^7.1.3",
6 | "ext-ctype": "*",
7 | "ext-iconv": "*",
8 | "symfony/console": "*",
9 | "symfony/flex": "^1.1",
10 | "symfony/framework-bundle": "*",
11 | "symfony/yaml": "*"
12 | },
13 | "require-dev": {
14 | "symfony/dotenv": "*"
15 | },
16 | "config": {
17 | "preferred-install": {
18 | "*": "dist"
19 | },
20 | "sort-packages": true
21 | },
22 | "autoload": {
23 | "psr-4": {
24 | "App\\": "src/"
25 | }
26 | },
27 | "autoload-dev": {
28 | "psr-4": {
29 | "App\\Tests\\": "tests/"
30 | }
31 | },
32 | "replace": {
33 | "paragonie/random_compat": "2.*",
34 | "symfony/polyfill-ctype": "*",
35 | "symfony/polyfill-iconv": "*",
36 | "symfony/polyfill-php71": "*",
37 | "symfony/polyfill-php70": "*",
38 | "symfony/polyfill-php56": "*"
39 | },
40 | "scripts": {
41 | "auto-scripts": {
42 | "cache:clear": "symfony-cmd",
43 | "assets:install %PUBLIC_DIR%": "symfony-cmd"
44 | },
45 | "post-install-cmd": [
46 | "@auto-scripts"
47 | ],
48 | "post-update-cmd": [
49 | "@auto-scripts"
50 | ]
51 | },
52 | "conflict": {
53 | "symfony/symfony": "*"
54 | },
55 | "extra": {
56 | "symfony": {
57 | "allow-contrib": false,
58 | "require": "4.1.*"
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
1 | {
2 | "_readme": [
3 | "This file locks the dependencies of your project to a known state",
4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 | "This file is @generated automatically"
6 | ],
7 | "content-hash": "626c5bd436f867ed8c4a4bd50351ae2e",
8 | "packages": [
9 | {
10 | "name": "psr/cache",
11 | "version": "1.0.1",
12 | "source": {
13 | "type": "git",
14 | "url": "https://github.com/php-fig/cache.git",
15 | "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8"
16 | },
17 | "dist": {
18 | "type": "zip",
19 | "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8",
20 | "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8",
21 | "shasum": ""
22 | },
23 | "require": {
24 | "php": ">=5.3.0"
25 | },
26 | "type": "library",
27 | "extra": {
28 | "branch-alias": {
29 | "dev-master": "1.0.x-dev"
30 | }
31 | },
32 | "autoload": {
33 | "psr-4": {
34 | "Psr\\Cache\\": "src/"
35 | }
36 | },
37 | "notification-url": "https://packagist.org/downloads/",
38 | "license": [
39 | "MIT"
40 | ],
41 | "authors": [
42 | {
43 | "name": "PHP-FIG",
44 | "homepage": "http://www.php-fig.org/"
45 | }
46 | ],
47 | "description": "Common interface for caching libraries",
48 | "keywords": [
49 | "cache",
50 | "psr",
51 | "psr-6"
52 | ],
53 | "time": "2016-08-06T20:24:11+00:00"
54 | },
55 | {
56 | "name": "psr/container",
57 | "version": "1.0.0",
58 | "source": {
59 | "type": "git",
60 | "url": "https://github.com/php-fig/container.git",
61 | "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
62 | },
63 | "dist": {
64 | "type": "zip",
65 | "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
66 | "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
67 | "shasum": ""
68 | },
69 | "require": {
70 | "php": ">=5.3.0"
71 | },
72 | "type": "library",
73 | "extra": {
74 | "branch-alias": {
75 | "dev-master": "1.0.x-dev"
76 | }
77 | },
78 | "autoload": {
79 | "psr-4": {
80 | "Psr\\Container\\": "src/"
81 | }
82 | },
83 | "notification-url": "https://packagist.org/downloads/",
84 | "license": [
85 | "MIT"
86 | ],
87 | "authors": [
88 | {
89 | "name": "PHP-FIG",
90 | "homepage": "http://www.php-fig.org/"
91 | }
92 | ],
93 | "description": "Common Container Interface (PHP FIG PSR-11)",
94 | "homepage": "https://github.com/php-fig/container",
95 | "keywords": [
96 | "PSR-11",
97 | "container",
98 | "container-interface",
99 | "container-interop",
100 | "psr"
101 | ],
102 | "time": "2017-02-14T16:28:37+00:00"
103 | },
104 | {
105 | "name": "psr/log",
106 | "version": "1.0.2",
107 | "source": {
108 | "type": "git",
109 | "url": "https://github.com/php-fig/log.git",
110 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
111 | },
112 | "dist": {
113 | "type": "zip",
114 | "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
115 | "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
116 | "shasum": ""
117 | },
118 | "require": {
119 | "php": ">=5.3.0"
120 | },
121 | "type": "library",
122 | "extra": {
123 | "branch-alias": {
124 | "dev-master": "1.0.x-dev"
125 | }
126 | },
127 | "autoload": {
128 | "psr-4": {
129 | "Psr\\Log\\": "Psr/Log/"
130 | }
131 | },
132 | "notification-url": "https://packagist.org/downloads/",
133 | "license": [
134 | "MIT"
135 | ],
136 | "authors": [
137 | {
138 | "name": "PHP-FIG",
139 | "homepage": "http://www.php-fig.org/"
140 | }
141 | ],
142 | "description": "Common interface for logging libraries",
143 | "homepage": "https://github.com/php-fig/log",
144 | "keywords": [
145 | "log",
146 | "psr",
147 | "psr-3"
148 | ],
149 | "time": "2016-10-10T12:19:37+00:00"
150 | },
151 | {
152 | "name": "psr/simple-cache",
153 | "version": "1.0.1",
154 | "source": {
155 | "type": "git",
156 | "url": "https://github.com/php-fig/simple-cache.git",
157 | "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b"
158 | },
159 | "dist": {
160 | "type": "zip",
161 | "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
162 | "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b",
163 | "shasum": ""
164 | },
165 | "require": {
166 | "php": ">=5.3.0"
167 | },
168 | "type": "library",
169 | "extra": {
170 | "branch-alias": {
171 | "dev-master": "1.0.x-dev"
172 | }
173 | },
174 | "autoload": {
175 | "psr-4": {
176 | "Psr\\SimpleCache\\": "src/"
177 | }
178 | },
179 | "notification-url": "https://packagist.org/downloads/",
180 | "license": [
181 | "MIT"
182 | ],
183 | "authors": [
184 | {
185 | "name": "PHP-FIG",
186 | "homepage": "http://www.php-fig.org/"
187 | }
188 | ],
189 | "description": "Common interfaces for simple caching",
190 | "keywords": [
191 | "cache",
192 | "caching",
193 | "psr",
194 | "psr-16",
195 | "simple-cache"
196 | ],
197 | "time": "2017-10-23T01:57:42+00:00"
198 | },
199 | {
200 | "name": "symfony/cache",
201 | "version": "v4.1.6",
202 | "source": {
203 | "type": "git",
204 | "url": "https://github.com/symfony/cache.git",
205 | "reference": "05ce0ddc8bc1ffe592105398fc2c725cb3080a38"
206 | },
207 | "dist": {
208 | "type": "zip",
209 | "url": "https://api.github.com/repos/symfony/cache/zipball/05ce0ddc8bc1ffe592105398fc2c725cb3080a38",
210 | "reference": "05ce0ddc8bc1ffe592105398fc2c725cb3080a38",
211 | "shasum": ""
212 | },
213 | "require": {
214 | "php": "^7.1.3",
215 | "psr/cache": "~1.0",
216 | "psr/log": "~1.0",
217 | "psr/simple-cache": "^1.0"
218 | },
219 | "conflict": {
220 | "symfony/var-dumper": "<3.4"
221 | },
222 | "provide": {
223 | "psr/cache-implementation": "1.0",
224 | "psr/simple-cache-implementation": "1.0"
225 | },
226 | "require-dev": {
227 | "cache/integration-tests": "dev-master",
228 | "doctrine/cache": "~1.6",
229 | "doctrine/dbal": "~2.4",
230 | "predis/predis": "~1.0"
231 | },
232 | "type": "library",
233 | "extra": {
234 | "branch-alias": {
235 | "dev-master": "4.1-dev"
236 | }
237 | },
238 | "autoload": {
239 | "psr-4": {
240 | "Symfony\\Component\\Cache\\": ""
241 | },
242 | "exclude-from-classmap": [
243 | "/Tests/"
244 | ]
245 | },
246 | "notification-url": "https://packagist.org/downloads/",
247 | "license": [
248 | "MIT"
249 | ],
250 | "authors": [
251 | {
252 | "name": "Nicolas Grekas",
253 | "email": "p@tchwork.com"
254 | },
255 | {
256 | "name": "Symfony Community",
257 | "homepage": "https://symfony.com/contributors"
258 | }
259 | ],
260 | "description": "Symfony Cache component with PSR-6, PSR-16, and tags",
261 | "homepage": "https://symfony.com",
262 | "keywords": [
263 | "caching",
264 | "psr6"
265 | ],
266 | "time": "2018-09-30T03:38:13+00:00"
267 | },
268 | {
269 | "name": "symfony/config",
270 | "version": "v4.1.6",
271 | "source": {
272 | "type": "git",
273 | "url": "https://github.com/symfony/config.git",
274 | "reference": "b3d4d7b567d7a49e6dfafb6d4760abc921177c96"
275 | },
276 | "dist": {
277 | "type": "zip",
278 | "url": "https://api.github.com/repos/symfony/config/zipball/b3d4d7b567d7a49e6dfafb6d4760abc921177c96",
279 | "reference": "b3d4d7b567d7a49e6dfafb6d4760abc921177c96",
280 | "shasum": ""
281 | },
282 | "require": {
283 | "php": "^7.1.3",
284 | "symfony/filesystem": "~3.4|~4.0",
285 | "symfony/polyfill-ctype": "~1.8"
286 | },
287 | "conflict": {
288 | "symfony/finder": "<3.4"
289 | },
290 | "require-dev": {
291 | "symfony/dependency-injection": "~3.4|~4.0",
292 | "symfony/event-dispatcher": "~3.4|~4.0",
293 | "symfony/finder": "~3.4|~4.0",
294 | "symfony/yaml": "~3.4|~4.0"
295 | },
296 | "suggest": {
297 | "symfony/yaml": "To use the yaml reference dumper"
298 | },
299 | "type": "library",
300 | "extra": {
301 | "branch-alias": {
302 | "dev-master": "4.1-dev"
303 | }
304 | },
305 | "autoload": {
306 | "psr-4": {
307 | "Symfony\\Component\\Config\\": ""
308 | },
309 | "exclude-from-classmap": [
310 | "/Tests/"
311 | ]
312 | },
313 | "notification-url": "https://packagist.org/downloads/",
314 | "license": [
315 | "MIT"
316 | ],
317 | "authors": [
318 | {
319 | "name": "Fabien Potencier",
320 | "email": "fabien@symfony.com"
321 | },
322 | {
323 | "name": "Symfony Community",
324 | "homepage": "https://symfony.com/contributors"
325 | }
326 | ],
327 | "description": "Symfony Config Component",
328 | "homepage": "https://symfony.com",
329 | "time": "2018-09-08T13:24:10+00:00"
330 | },
331 | {
332 | "name": "symfony/console",
333 | "version": "v4.1.6",
334 | "source": {
335 | "type": "git",
336 | "url": "https://github.com/symfony/console.git",
337 | "reference": "dc7122fe5f6113cfaba3b3de575d31112c9aa60b"
338 | },
339 | "dist": {
340 | "type": "zip",
341 | "url": "https://api.github.com/repos/symfony/console/zipball/dc7122fe5f6113cfaba3b3de575d31112c9aa60b",
342 | "reference": "dc7122fe5f6113cfaba3b3de575d31112c9aa60b",
343 | "shasum": ""
344 | },
345 | "require": {
346 | "php": "^7.1.3",
347 | "symfony/polyfill-mbstring": "~1.0"
348 | },
349 | "conflict": {
350 | "symfony/dependency-injection": "<3.4",
351 | "symfony/process": "<3.3"
352 | },
353 | "require-dev": {
354 | "psr/log": "~1.0",
355 | "symfony/config": "~3.4|~4.0",
356 | "symfony/dependency-injection": "~3.4|~4.0",
357 | "symfony/event-dispatcher": "~3.4|~4.0",
358 | "symfony/lock": "~3.4|~4.0",
359 | "symfony/process": "~3.4|~4.0"
360 | },
361 | "suggest": {
362 | "psr/log-implementation": "For using the console logger",
363 | "symfony/event-dispatcher": "",
364 | "symfony/lock": "",
365 | "symfony/process": ""
366 | },
367 | "type": "library",
368 | "extra": {
369 | "branch-alias": {
370 | "dev-master": "4.1-dev"
371 | }
372 | },
373 | "autoload": {
374 | "psr-4": {
375 | "Symfony\\Component\\Console\\": ""
376 | },
377 | "exclude-from-classmap": [
378 | "/Tests/"
379 | ]
380 | },
381 | "notification-url": "https://packagist.org/downloads/",
382 | "license": [
383 | "MIT"
384 | ],
385 | "authors": [
386 | {
387 | "name": "Fabien Potencier",
388 | "email": "fabien@symfony.com"
389 | },
390 | {
391 | "name": "Symfony Community",
392 | "homepage": "https://symfony.com/contributors"
393 | }
394 | ],
395 | "description": "Symfony Console Component",
396 | "homepage": "https://symfony.com",
397 | "time": "2018-10-03T08:15:46+00:00"
398 | },
399 | {
400 | "name": "symfony/debug",
401 | "version": "v4.1.6",
402 | "source": {
403 | "type": "git",
404 | "url": "https://github.com/symfony/debug.git",
405 | "reference": "e3f76ce6198f81994e019bb2b4e533e9de1b9b90"
406 | },
407 | "dist": {
408 | "type": "zip",
409 | "url": "https://api.github.com/repos/symfony/debug/zipball/e3f76ce6198f81994e019bb2b4e533e9de1b9b90",
410 | "reference": "e3f76ce6198f81994e019bb2b4e533e9de1b9b90",
411 | "shasum": ""
412 | },
413 | "require": {
414 | "php": "^7.1.3",
415 | "psr/log": "~1.0"
416 | },
417 | "conflict": {
418 | "symfony/http-kernel": "<3.4"
419 | },
420 | "require-dev": {
421 | "symfony/http-kernel": "~3.4|~4.0"
422 | },
423 | "type": "library",
424 | "extra": {
425 | "branch-alias": {
426 | "dev-master": "4.1-dev"
427 | }
428 | },
429 | "autoload": {
430 | "psr-4": {
431 | "Symfony\\Component\\Debug\\": ""
432 | },
433 | "exclude-from-classmap": [
434 | "/Tests/"
435 | ]
436 | },
437 | "notification-url": "https://packagist.org/downloads/",
438 | "license": [
439 | "MIT"
440 | ],
441 | "authors": [
442 | {
443 | "name": "Fabien Potencier",
444 | "email": "fabien@symfony.com"
445 | },
446 | {
447 | "name": "Symfony Community",
448 | "homepage": "https://symfony.com/contributors"
449 | }
450 | ],
451 | "description": "Symfony Debug Component",
452 | "homepage": "https://symfony.com",
453 | "time": "2018-10-02T16:36:10+00:00"
454 | },
455 | {
456 | "name": "symfony/dependency-injection",
457 | "version": "v4.1.6",
458 | "source": {
459 | "type": "git",
460 | "url": "https://github.com/symfony/dependency-injection.git",
461 | "reference": "f6b9d893ad28aefd8942dc0469c8397e2216fe30"
462 | },
463 | "dist": {
464 | "type": "zip",
465 | "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f6b9d893ad28aefd8942dc0469c8397e2216fe30",
466 | "reference": "f6b9d893ad28aefd8942dc0469c8397e2216fe30",
467 | "shasum": ""
468 | },
469 | "require": {
470 | "php": "^7.1.3",
471 | "psr/container": "^1.0"
472 | },
473 | "conflict": {
474 | "symfony/config": "<4.1.1",
475 | "symfony/finder": "<3.4",
476 | "symfony/proxy-manager-bridge": "<3.4",
477 | "symfony/yaml": "<3.4"
478 | },
479 | "provide": {
480 | "psr/container-implementation": "1.0"
481 | },
482 | "require-dev": {
483 | "symfony/config": "~4.1",
484 | "symfony/expression-language": "~3.4|~4.0",
485 | "symfony/yaml": "~3.4|~4.0"
486 | },
487 | "suggest": {
488 | "symfony/config": "",
489 | "symfony/expression-language": "For using expressions in service container configuration",
490 | "symfony/finder": "For using double-star glob patterns or when GLOB_BRACE portability is required",
491 | "symfony/proxy-manager-bridge": "Generate service proxies to lazy load them",
492 | "symfony/yaml": ""
493 | },
494 | "type": "library",
495 | "extra": {
496 | "branch-alias": {
497 | "dev-master": "4.1-dev"
498 | }
499 | },
500 | "autoload": {
501 | "psr-4": {
502 | "Symfony\\Component\\DependencyInjection\\": ""
503 | },
504 | "exclude-from-classmap": [
505 | "/Tests/"
506 | ]
507 | },
508 | "notification-url": "https://packagist.org/downloads/",
509 | "license": [
510 | "MIT"
511 | ],
512 | "authors": [
513 | {
514 | "name": "Fabien Potencier",
515 | "email": "fabien@symfony.com"
516 | },
517 | {
518 | "name": "Symfony Community",
519 | "homepage": "https://symfony.com/contributors"
520 | }
521 | ],
522 | "description": "Symfony DependencyInjection Component",
523 | "homepage": "https://symfony.com",
524 | "time": "2018-10-02T12:40:59+00:00"
525 | },
526 | {
527 | "name": "symfony/event-dispatcher",
528 | "version": "v4.1.6",
529 | "source": {
530 | "type": "git",
531 | "url": "https://github.com/symfony/event-dispatcher.git",
532 | "reference": "bfb30c2ad377615a463ebbc875eba64a99f6aa3e"
533 | },
534 | "dist": {
535 | "type": "zip",
536 | "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/bfb30c2ad377615a463ebbc875eba64a99f6aa3e",
537 | "reference": "bfb30c2ad377615a463ebbc875eba64a99f6aa3e",
538 | "shasum": ""
539 | },
540 | "require": {
541 | "php": "^7.1.3"
542 | },
543 | "conflict": {
544 | "symfony/dependency-injection": "<3.4"
545 | },
546 | "require-dev": {
547 | "psr/log": "~1.0",
548 | "symfony/config": "~3.4|~4.0",
549 | "symfony/dependency-injection": "~3.4|~4.0",
550 | "symfony/expression-language": "~3.4|~4.0",
551 | "symfony/stopwatch": "~3.4|~4.0"
552 | },
553 | "suggest": {
554 | "symfony/dependency-injection": "",
555 | "symfony/http-kernel": ""
556 | },
557 | "type": "library",
558 | "extra": {
559 | "branch-alias": {
560 | "dev-master": "4.1-dev"
561 | }
562 | },
563 | "autoload": {
564 | "psr-4": {
565 | "Symfony\\Component\\EventDispatcher\\": ""
566 | },
567 | "exclude-from-classmap": [
568 | "/Tests/"
569 | ]
570 | },
571 | "notification-url": "https://packagist.org/downloads/",
572 | "license": [
573 | "MIT"
574 | ],
575 | "authors": [
576 | {
577 | "name": "Fabien Potencier",
578 | "email": "fabien@symfony.com"
579 | },
580 | {
581 | "name": "Symfony Community",
582 | "homepage": "https://symfony.com/contributors"
583 | }
584 | ],
585 | "description": "Symfony EventDispatcher Component",
586 | "homepage": "https://symfony.com",
587 | "time": "2018-07-26T09:10:45+00:00"
588 | },
589 | {
590 | "name": "symfony/filesystem",
591 | "version": "v4.1.6",
592 | "source": {
593 | "type": "git",
594 | "url": "https://github.com/symfony/filesystem.git",
595 | "reference": "596d12b40624055c300c8b619755b748ca5cf0b5"
596 | },
597 | "dist": {
598 | "type": "zip",
599 | "url": "https://api.github.com/repos/symfony/filesystem/zipball/596d12b40624055c300c8b619755b748ca5cf0b5",
600 | "reference": "596d12b40624055c300c8b619755b748ca5cf0b5",
601 | "shasum": ""
602 | },
603 | "require": {
604 | "php": "^7.1.3",
605 | "symfony/polyfill-ctype": "~1.8"
606 | },
607 | "type": "library",
608 | "extra": {
609 | "branch-alias": {
610 | "dev-master": "4.1-dev"
611 | }
612 | },
613 | "autoload": {
614 | "psr-4": {
615 | "Symfony\\Component\\Filesystem\\": ""
616 | },
617 | "exclude-from-classmap": [
618 | "/Tests/"
619 | ]
620 | },
621 | "notification-url": "https://packagist.org/downloads/",
622 | "license": [
623 | "MIT"
624 | ],
625 | "authors": [
626 | {
627 | "name": "Fabien Potencier",
628 | "email": "fabien@symfony.com"
629 | },
630 | {
631 | "name": "Symfony Community",
632 | "homepage": "https://symfony.com/contributors"
633 | }
634 | ],
635 | "description": "Symfony Filesystem Component",
636 | "homepage": "https://symfony.com",
637 | "time": "2018-10-02T12:40:59+00:00"
638 | },
639 | {
640 | "name": "symfony/finder",
641 | "version": "v4.1.6",
642 | "source": {
643 | "type": "git",
644 | "url": "https://github.com/symfony/finder.git",
645 | "reference": "1f17195b44543017a9c9b2d437c670627e96ad06"
646 | },
647 | "dist": {
648 | "type": "zip",
649 | "url": "https://api.github.com/repos/symfony/finder/zipball/1f17195b44543017a9c9b2d437c670627e96ad06",
650 | "reference": "1f17195b44543017a9c9b2d437c670627e96ad06",
651 | "shasum": ""
652 | },
653 | "require": {
654 | "php": "^7.1.3"
655 | },
656 | "type": "library",
657 | "extra": {
658 | "branch-alias": {
659 | "dev-master": "4.1-dev"
660 | }
661 | },
662 | "autoload": {
663 | "psr-4": {
664 | "Symfony\\Component\\Finder\\": ""
665 | },
666 | "exclude-from-classmap": [
667 | "/Tests/"
668 | ]
669 | },
670 | "notification-url": "https://packagist.org/downloads/",
671 | "license": [
672 | "MIT"
673 | ],
674 | "authors": [
675 | {
676 | "name": "Fabien Potencier",
677 | "email": "fabien@symfony.com"
678 | },
679 | {
680 | "name": "Symfony Community",
681 | "homepage": "https://symfony.com/contributors"
682 | }
683 | ],
684 | "description": "Symfony Finder Component",
685 | "homepage": "https://symfony.com",
686 | "time": "2018-10-03T08:47:56+00:00"
687 | },
688 | {
689 | "name": "symfony/flex",
690 | "version": "v1.1.1",
691 | "source": {
692 | "type": "git",
693 | "url": "https://github.com/symfony/flex.git",
694 | "reference": "9fb60f232af0764d58002e7872acb43a74506d25"
695 | },
696 | "dist": {
697 | "type": "zip",
698 | "url": "https://api.github.com/repos/symfony/flex/zipball/9fb60f232af0764d58002e7872acb43a74506d25",
699 | "reference": "9fb60f232af0764d58002e7872acb43a74506d25",
700 | "shasum": ""
701 | },
702 | "require": {
703 | "composer-plugin-api": "^1.0",
704 | "php": "^7.0"
705 | },
706 | "require-dev": {
707 | "composer/composer": "^1.0.2",
708 | "symfony/phpunit-bridge": "^3.2.8"
709 | },
710 | "type": "composer-plugin",
711 | "extra": {
712 | "branch-alias": {
713 | "dev-master": "1.1-dev"
714 | },
715 | "class": "Symfony\\Flex\\Flex"
716 | },
717 | "autoload": {
718 | "psr-4": {
719 | "Symfony\\Flex\\": "src"
720 | }
721 | },
722 | "notification-url": "https://packagist.org/downloads/",
723 | "license": [
724 | "MIT"
725 | ],
726 | "authors": [
727 | {
728 | "name": "Fabien Potencier",
729 | "email": "fabien.potencier@gmail.com"
730 | }
731 | ],
732 | "description": "Composer plugin for Symfony",
733 | "time": "2018-09-03T08:17:12+00:00"
734 | },
735 | {
736 | "name": "symfony/framework-bundle",
737 | "version": "v4.1.6",
738 | "source": {
739 | "type": "git",
740 | "url": "https://github.com/symfony/framework-bundle.git",
741 | "reference": "3a0f2ec035c6ecc0f751fda1a76b02310bc9bbfe"
742 | },
743 | "dist": {
744 | "type": "zip",
745 | "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/3a0f2ec035c6ecc0f751fda1a76b02310bc9bbfe",
746 | "reference": "3a0f2ec035c6ecc0f751fda1a76b02310bc9bbfe",
747 | "shasum": ""
748 | },
749 | "require": {
750 | "ext-xml": "*",
751 | "php": "^7.1.3",
752 | "symfony/cache": "~3.4|~4.0",
753 | "symfony/config": "~3.4|~4.0",
754 | "symfony/dependency-injection": "^4.1.1",
755 | "symfony/event-dispatcher": "^4.1",
756 | "symfony/filesystem": "~3.4|~4.0",
757 | "symfony/finder": "~3.4|~4.0",
758 | "symfony/http-foundation": "^4.1",
759 | "symfony/http-kernel": "^4.1",
760 | "symfony/polyfill-mbstring": "~1.0",
761 | "symfony/routing": "^4.1"
762 | },
763 | "conflict": {
764 | "phpdocumentor/reflection-docblock": "<3.0",
765 | "phpdocumentor/type-resolver": "<0.2.1",
766 | "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
767 | "symfony/asset": "<3.4",
768 | "symfony/console": "<3.4",
769 | "symfony/form": "<4.1",
770 | "symfony/messenger": ">=4.2",
771 | "symfony/property-info": "<3.4",
772 | "symfony/serializer": "<4.1",
773 | "symfony/stopwatch": "<3.4",
774 | "symfony/translation": "<3.4",
775 | "symfony/twig-bridge": "<4.1.1",
776 | "symfony/validator": "<4.1",
777 | "symfony/workflow": "<4.1"
778 | },
779 | "require-dev": {
780 | "doctrine/annotations": "~1.0",
781 | "doctrine/cache": "~1.0",
782 | "fig/link-util": "^1.0",
783 | "phpdocumentor/reflection-docblock": "^3.0|^4.0",
784 | "symfony/asset": "~3.4|~4.0",
785 | "symfony/browser-kit": "~3.4|~4.0",
786 | "symfony/console": "~3.4|~4.0",
787 | "symfony/css-selector": "~3.4|~4.0",
788 | "symfony/dom-crawler": "~3.4|~4.0",
789 | "symfony/expression-language": "~3.4|~4.0",
790 | "symfony/form": "^4.1",
791 | "symfony/lock": "~3.4|~4.0",
792 | "symfony/messenger": "^4.1",
793 | "symfony/polyfill-intl-icu": "~1.0",
794 | "symfony/process": "~3.4|~4.0",
795 | "symfony/property-info": "~3.4|~4.0",
796 | "symfony/security": "~3.4|~4.0",
797 | "symfony/security-core": "~3.4|~4.0",
798 | "symfony/security-csrf": "~3.4|~4.0",
799 | "symfony/serializer": "^4.1",
800 | "symfony/stopwatch": "~3.4|~4.0",
801 | "symfony/templating": "~3.4|~4.0",
802 | "symfony/translation": "~3.4|~4.0",
803 | "symfony/validator": "^4.1",
804 | "symfony/var-dumper": "~3.4|~4.0",
805 | "symfony/web-link": "~3.4|~4.0",
806 | "symfony/workflow": "^4.1",
807 | "symfony/yaml": "~3.4|~4.0",
808 | "twig/twig": "~1.34|~2.4"
809 | },
810 | "suggest": {
811 | "ext-apcu": "For best performance of the system caches",
812 | "symfony/console": "For using the console commands",
813 | "symfony/form": "For using forms",
814 | "symfony/property-info": "For using the property_info service",
815 | "symfony/serializer": "For using the serializer service",
816 | "symfony/validator": "For using validation",
817 | "symfony/web-link": "For using web links, features such as preloading, prefetching or prerendering",
818 | "symfony/yaml": "For using the debug:config and lint:yaml commands"
819 | },
820 | "type": "symfony-bundle",
821 | "extra": {
822 | "branch-alias": {
823 | "dev-master": "4.1-dev"
824 | }
825 | },
826 | "autoload": {
827 | "psr-4": {
828 | "Symfony\\Bundle\\FrameworkBundle\\": ""
829 | },
830 | "exclude-from-classmap": [
831 | "/Tests/"
832 | ]
833 | },
834 | "notification-url": "https://packagist.org/downloads/",
835 | "license": [
836 | "MIT"
837 | ],
838 | "authors": [
839 | {
840 | "name": "Fabien Potencier",
841 | "email": "fabien@symfony.com"
842 | },
843 | {
844 | "name": "Symfony Community",
845 | "homepage": "https://symfony.com/contributors"
846 | }
847 | ],
848 | "description": "Symfony FrameworkBundle",
849 | "homepage": "https://symfony.com",
850 | "time": "2018-10-03T08:47:56+00:00"
851 | },
852 | {
853 | "name": "symfony/http-foundation",
854 | "version": "v4.1.6",
855 | "source": {
856 | "type": "git",
857 | "url": "https://github.com/symfony/http-foundation.git",
858 | "reference": "d528136617ff24f530e70df9605acc1b788b08d4"
859 | },
860 | "dist": {
861 | "type": "zip",
862 | "url": "https://api.github.com/repos/symfony/http-foundation/zipball/d528136617ff24f530e70df9605acc1b788b08d4",
863 | "reference": "d528136617ff24f530e70df9605acc1b788b08d4",
864 | "shasum": ""
865 | },
866 | "require": {
867 | "php": "^7.1.3",
868 | "symfony/polyfill-mbstring": "~1.1"
869 | },
870 | "require-dev": {
871 | "predis/predis": "~1.0",
872 | "symfony/expression-language": "~3.4|~4.0"
873 | },
874 | "type": "library",
875 | "extra": {
876 | "branch-alias": {
877 | "dev-master": "4.1-dev"
878 | }
879 | },
880 | "autoload": {
881 | "psr-4": {
882 | "Symfony\\Component\\HttpFoundation\\": ""
883 | },
884 | "exclude-from-classmap": [
885 | "/Tests/"
886 | ]
887 | },
888 | "notification-url": "https://packagist.org/downloads/",
889 | "license": [
890 | "MIT"
891 | ],
892 | "authors": [
893 | {
894 | "name": "Fabien Potencier",
895 | "email": "fabien@symfony.com"
896 | },
897 | {
898 | "name": "Symfony Community",
899 | "homepage": "https://symfony.com/contributors"
900 | }
901 | ],
902 | "description": "Symfony HttpFoundation Component",
903 | "homepage": "https://symfony.com",
904 | "time": "2018-10-03T08:48:45+00:00"
905 | },
906 | {
907 | "name": "symfony/http-kernel",
908 | "version": "v4.1.6",
909 | "source": {
910 | "type": "git",
911 | "url": "https://github.com/symfony/http-kernel.git",
912 | "reference": "f5e7c15a5d010be0e16ce798594c5960451d4220"
913 | },
914 | "dist": {
915 | "type": "zip",
916 | "url": "https://api.github.com/repos/symfony/http-kernel/zipball/f5e7c15a5d010be0e16ce798594c5960451d4220",
917 | "reference": "f5e7c15a5d010be0e16ce798594c5960451d4220",
918 | "shasum": ""
919 | },
920 | "require": {
921 | "php": "^7.1.3",
922 | "psr/log": "~1.0",
923 | "symfony/debug": "~3.4|~4.0",
924 | "symfony/event-dispatcher": "~4.1",
925 | "symfony/http-foundation": "^4.1.1",
926 | "symfony/polyfill-ctype": "~1.8"
927 | },
928 | "conflict": {
929 | "symfony/config": "<3.4",
930 | "symfony/dependency-injection": "<4.1",
931 | "symfony/var-dumper": "<4.1.1",
932 | "twig/twig": "<1.34|<2.4,>=2"
933 | },
934 | "provide": {
935 | "psr/log-implementation": "1.0"
936 | },
937 | "require-dev": {
938 | "psr/cache": "~1.0",
939 | "symfony/browser-kit": "~3.4|~4.0",
940 | "symfony/config": "~3.4|~4.0",
941 | "symfony/console": "~3.4|~4.0",
942 | "symfony/css-selector": "~3.4|~4.0",
943 | "symfony/dependency-injection": "^4.1",
944 | "symfony/dom-crawler": "~3.4|~4.0",
945 | "symfony/expression-language": "~3.4|~4.0",
946 | "symfony/finder": "~3.4|~4.0",
947 | "symfony/process": "~3.4|~4.0",
948 | "symfony/routing": "~3.4|~4.0",
949 | "symfony/stopwatch": "~3.4|~4.0",
950 | "symfony/templating": "~3.4|~4.0",
951 | "symfony/translation": "~3.4|~4.0",
952 | "symfony/var-dumper": "^4.1.1"
953 | },
954 | "suggest": {
955 | "symfony/browser-kit": "",
956 | "symfony/config": "",
957 | "symfony/console": "",
958 | "symfony/dependency-injection": "",
959 | "symfony/var-dumper": ""
960 | },
961 | "type": "library",
962 | "extra": {
963 | "branch-alias": {
964 | "dev-master": "4.1-dev"
965 | }
966 | },
967 | "autoload": {
968 | "psr-4": {
969 | "Symfony\\Component\\HttpKernel\\": ""
970 | },
971 | "exclude-from-classmap": [
972 | "/Tests/"
973 | ]
974 | },
975 | "notification-url": "https://packagist.org/downloads/",
976 | "license": [
977 | "MIT"
978 | ],
979 | "authors": [
980 | {
981 | "name": "Fabien Potencier",
982 | "email": "fabien@symfony.com"
983 | },
984 | {
985 | "name": "Symfony Community",
986 | "homepage": "https://symfony.com/contributors"
987 | }
988 | ],
989 | "description": "Symfony HttpKernel Component",
990 | "homepage": "https://symfony.com",
991 | "time": "2018-10-03T12:53:38+00:00"
992 | },
993 | {
994 | "name": "symfony/polyfill-mbstring",
995 | "version": "v1.9.0",
996 | "source": {
997 | "type": "git",
998 | "url": "https://github.com/symfony/polyfill-mbstring.git",
999 | "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8"
1000 | },
1001 | "dist": {
1002 | "type": "zip",
1003 | "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/d0cd638f4634c16d8df4508e847f14e9e43168b8",
1004 | "reference": "d0cd638f4634c16d8df4508e847f14e9e43168b8",
1005 | "shasum": ""
1006 | },
1007 | "require": {
1008 | "php": ">=5.3.3"
1009 | },
1010 | "suggest": {
1011 | "ext-mbstring": "For best performance"
1012 | },
1013 | "type": "library",
1014 | "extra": {
1015 | "branch-alias": {
1016 | "dev-master": "1.9-dev"
1017 | }
1018 | },
1019 | "autoload": {
1020 | "psr-4": {
1021 | "Symfony\\Polyfill\\Mbstring\\": ""
1022 | },
1023 | "files": [
1024 | "bootstrap.php"
1025 | ]
1026 | },
1027 | "notification-url": "https://packagist.org/downloads/",
1028 | "license": [
1029 | "MIT"
1030 | ],
1031 | "authors": [
1032 | {
1033 | "name": "Nicolas Grekas",
1034 | "email": "p@tchwork.com"
1035 | },
1036 | {
1037 | "name": "Symfony Community",
1038 | "homepage": "https://symfony.com/contributors"
1039 | }
1040 | ],
1041 | "description": "Symfony polyfill for the Mbstring extension",
1042 | "homepage": "https://symfony.com",
1043 | "keywords": [
1044 | "compatibility",
1045 | "mbstring",
1046 | "polyfill",
1047 | "portable",
1048 | "shim"
1049 | ],
1050 | "time": "2018-08-06T14:22:27+00:00"
1051 | },
1052 | {
1053 | "name": "symfony/routing",
1054 | "version": "v4.1.6",
1055 | "source": {
1056 | "type": "git",
1057 | "url": "https://github.com/symfony/routing.git",
1058 | "reference": "537803f0bdfede36b9acef052d2e4d447d9fa0e9"
1059 | },
1060 | "dist": {
1061 | "type": "zip",
1062 | "url": "https://api.github.com/repos/symfony/routing/zipball/537803f0bdfede36b9acef052d2e4d447d9fa0e9",
1063 | "reference": "537803f0bdfede36b9acef052d2e4d447d9fa0e9",
1064 | "shasum": ""
1065 | },
1066 | "require": {
1067 | "php": "^7.1.3"
1068 | },
1069 | "conflict": {
1070 | "symfony/config": "<3.4",
1071 | "symfony/dependency-injection": "<3.4",
1072 | "symfony/yaml": "<3.4"
1073 | },
1074 | "require-dev": {
1075 | "doctrine/annotations": "~1.0",
1076 | "psr/log": "~1.0",
1077 | "symfony/config": "~3.4|~4.0",
1078 | "symfony/dependency-injection": "~3.4|~4.0",
1079 | "symfony/expression-language": "~3.4|~4.0",
1080 | "symfony/http-foundation": "~3.4|~4.0",
1081 | "symfony/yaml": "~3.4|~4.0"
1082 | },
1083 | "suggest": {
1084 | "doctrine/annotations": "For using the annotation loader",
1085 | "symfony/config": "For using the all-in-one router or any loader",
1086 | "symfony/dependency-injection": "For loading routes from a service",
1087 | "symfony/expression-language": "For using expression matching",
1088 | "symfony/http-foundation": "For using a Symfony Request object",
1089 | "symfony/yaml": "For using the YAML loader"
1090 | },
1091 | "type": "library",
1092 | "extra": {
1093 | "branch-alias": {
1094 | "dev-master": "4.1-dev"
1095 | }
1096 | },
1097 | "autoload": {
1098 | "psr-4": {
1099 | "Symfony\\Component\\Routing\\": ""
1100 | },
1101 | "exclude-from-classmap": [
1102 | "/Tests/"
1103 | ]
1104 | },
1105 | "notification-url": "https://packagist.org/downloads/",
1106 | "license": [
1107 | "MIT"
1108 | ],
1109 | "authors": [
1110 | {
1111 | "name": "Fabien Potencier",
1112 | "email": "fabien@symfony.com"
1113 | },
1114 | {
1115 | "name": "Symfony Community",
1116 | "homepage": "https://symfony.com/contributors"
1117 | }
1118 | ],
1119 | "description": "Symfony Routing Component",
1120 | "homepage": "https://symfony.com",
1121 | "keywords": [
1122 | "router",
1123 | "routing",
1124 | "uri",
1125 | "url"
1126 | ],
1127 | "time": "2018-10-02T12:40:59+00:00"
1128 | },
1129 | {
1130 | "name": "symfony/yaml",
1131 | "version": "v4.1.6",
1132 | "source": {
1133 | "type": "git",
1134 | "url": "https://github.com/symfony/yaml.git",
1135 | "reference": "367e689b2fdc19965be435337b50bc8adf2746c9"
1136 | },
1137 | "dist": {
1138 | "type": "zip",
1139 | "url": "https://api.github.com/repos/symfony/yaml/zipball/367e689b2fdc19965be435337b50bc8adf2746c9",
1140 | "reference": "367e689b2fdc19965be435337b50bc8adf2746c9",
1141 | "shasum": ""
1142 | },
1143 | "require": {
1144 | "php": "^7.1.3",
1145 | "symfony/polyfill-ctype": "~1.8"
1146 | },
1147 | "conflict": {
1148 | "symfony/console": "<3.4"
1149 | },
1150 | "require-dev": {
1151 | "symfony/console": "~3.4|~4.0"
1152 | },
1153 | "suggest": {
1154 | "symfony/console": "For validating YAML files using the lint command"
1155 | },
1156 | "type": "library",
1157 | "extra": {
1158 | "branch-alias": {
1159 | "dev-master": "4.1-dev"
1160 | }
1161 | },
1162 | "autoload": {
1163 | "psr-4": {
1164 | "Symfony\\Component\\Yaml\\": ""
1165 | },
1166 | "exclude-from-classmap": [
1167 | "/Tests/"
1168 | ]
1169 | },
1170 | "notification-url": "https://packagist.org/downloads/",
1171 | "license": [
1172 | "MIT"
1173 | ],
1174 | "authors": [
1175 | {
1176 | "name": "Fabien Potencier",
1177 | "email": "fabien@symfony.com"
1178 | },
1179 | {
1180 | "name": "Symfony Community",
1181 | "homepage": "https://symfony.com/contributors"
1182 | }
1183 | ],
1184 | "description": "Symfony Yaml Component",
1185 | "homepage": "https://symfony.com",
1186 | "time": "2018-10-02T16:36:10+00:00"
1187 | }
1188 | ],
1189 | "packages-dev": [
1190 | {
1191 | "name": "symfony/dotenv",
1192 | "version": "v4.1.6",
1193 | "source": {
1194 | "type": "git",
1195 | "url": "https://github.com/symfony/dotenv.git",
1196 | "reference": "22ca63c46e252b8a8f37b8f9e6da66bff5b3d3e7"
1197 | },
1198 | "dist": {
1199 | "type": "zip",
1200 | "url": "https://api.github.com/repos/symfony/dotenv/zipball/22ca63c46e252b8a8f37b8f9e6da66bff5b3d3e7",
1201 | "reference": "22ca63c46e252b8a8f37b8f9e6da66bff5b3d3e7",
1202 | "shasum": ""
1203 | },
1204 | "require": {
1205 | "php": "^7.1.3"
1206 | },
1207 | "require-dev": {
1208 | "symfony/process": "~3.4|~4.0"
1209 | },
1210 | "type": "library",
1211 | "extra": {
1212 | "branch-alias": {
1213 | "dev-master": "4.1-dev"
1214 | }
1215 | },
1216 | "autoload": {
1217 | "psr-4": {
1218 | "Symfony\\Component\\Dotenv\\": ""
1219 | },
1220 | "exclude-from-classmap": [
1221 | "/Tests/"
1222 | ]
1223 | },
1224 | "notification-url": "https://packagist.org/downloads/",
1225 | "license": [
1226 | "MIT"
1227 | ],
1228 | "authors": [
1229 | {
1230 | "name": "Fabien Potencier",
1231 | "email": "fabien@symfony.com"
1232 | },
1233 | {
1234 | "name": "Symfony Community",
1235 | "homepage": "https://symfony.com/contributors"
1236 | }
1237 | ],
1238 | "description": "Registers environment variables from a .env file",
1239 | "homepage": "https://symfony.com",
1240 | "keywords": [
1241 | "dotenv",
1242 | "env",
1243 | "environment"
1244 | ],
1245 | "time": "2018-07-26T11:24:31+00:00"
1246 | }
1247 | ],
1248 | "aliases": [],
1249 | "minimum-stability": "stable",
1250 | "stability-flags": [],
1251 | "prefer-stable": false,
1252 | "prefer-lowest": false,
1253 | "platform": {
1254 | "php": "^7.1.3",
1255 | "ext-ctype": "*",
1256 | "ext-iconv": "*"
1257 | },
1258 | "platform-dev": []
1259 | }
1260 |
--------------------------------------------------------------------------------
/config/bundles.php:
--------------------------------------------------------------------------------
1 | ['all' => true],
5 | ];
6 |
--------------------------------------------------------------------------------
/config/packages/dev/routing.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | router:
3 | strict_requirements: true
4 |
--------------------------------------------------------------------------------
/config/packages/framework.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | secret: '%env(APP_SECRET)%'
3 | #default_locale: en
4 | #csrf_protection: true
5 | #http_method_override: true
6 |
7 | # Enables session support. Note that the session will ONLY be started if you read or write from it.
8 | # Remove or comment this section to explicitly disable session support.
9 | session:
10 | handler_id: ~
11 |
12 | #esi: true
13 | #fragments: true
14 | php_errors:
15 | log: true
16 |
17 | cache:
18 | # Put the unique name of your app here: the prefix seed
19 | # is used to compute stable namespaces for cache keys.
20 | #prefix_seed: your_vendor_name/app_name
21 |
22 | # The app cache caches to the filesystem by default.
23 | # Other options include:
24 |
25 | # Redis
26 | #app: cache.adapter.redis
27 | #default_redis_provider: redis://localhost
28 |
29 | # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
30 | #app: cache.adapter.apcu
31 |
--------------------------------------------------------------------------------
/config/packages/routing.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | router:
3 | strict_requirements: ~
4 |
--------------------------------------------------------------------------------
/config/packages/test/framework.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | test: true
3 | session:
4 | storage_id: session.storage.mock_file
5 |
--------------------------------------------------------------------------------
/config/packages/test/routing.yaml:
--------------------------------------------------------------------------------
1 | framework:
2 | router:
3 | strict_requirements: true
4 |
--------------------------------------------------------------------------------
/config/routes.yaml:
--------------------------------------------------------------------------------
1 | #index:
2 | # path: /
3 | # controller: App\Controller\DefaultController::index
4 |
--------------------------------------------------------------------------------
/config/services.yaml:
--------------------------------------------------------------------------------
1 | # This file is the entry point to configure your own services.
2 | # Files in the packages/ subdirectory configure your dependencies.
3 |
4 | # Put parameters here that don't need to change on each machine where the app is deployed
5 | # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
6 | parameters:
7 |
8 | services:
9 | # default configuration for services in *this* file
10 | _defaults:
11 | autowire: true # Automatically injects dependencies in your services.
12 | autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
13 | public: false # Allows optimizing the container by removing unused services; this also means
14 | # fetching services directly from the container via $container->get() won't work.
15 | # The best practice is to be explicit about your dependencies anyway.
16 |
17 | # makes classes in src/ available to be used as services
18 | # this creates a service per class whose id is the fully-qualified class name
19 | App\:
20 | resource: '../src/*'
21 | exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
22 |
23 | # controllers are imported separately to make sure services can be injected
24 | # as action arguments even if you don't extend any base controller class
25 | App\Controller\:
26 | resource: '../src/Controller'
27 | tags: ['controller.service_arguments']
28 |
29 | # add more service definitions when explicit configuration is needed
30 | # please note that last definitions always *replace* previous ones
31 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3'
2 | services:
3 | apache:
4 | build: .docker/apache
5 | container_name: sf4_apache
6 | ports:
7 | - 80:80
8 | volumes:
9 | - .docker/config/vhosts:/etc/apache2/sites-enabled
10 | - .:/home/wwwroot/sf4
11 | depends_on:
12 | - php
13 |
14 | mysql:
15 | image: mysql
16 | command: "--default-authentication-plugin=mysql_native_password"
17 | container_name: sf4_mysql
18 | volumes:
19 | - .docker/data/db:/var/lib/mysql
20 | environment:
21 | MYSQL_ROOT_PASSWORD: root
22 | MYSQL_DATABASE: sf4
23 | MYSQL_USER: sf4
24 | MYSQL_PASSWORD: sf4
25 |
26 | php:
27 | build: .docker/php
28 | container_name: sf4_php
29 | volumes:
30 | - .:/home/wwwroot/sf4
31 | environment:
32 | - maildev_host=sf4_maildev
33 | depends_on:
34 | - maildev
35 | - mysql
36 |
37 | phpmyadmin:
38 | image: phpmyadmin/phpmyadmin
39 | container_name: sf4_phpmyadmin
40 | environment:
41 | PMA_HOST: mysql
42 | PMA_PORT: 3306
43 | ports:
44 | - 8080:80
45 | links:
46 | - mysql
47 |
48 | maildev:
49 | image: djfarrelly/maildev
50 | container_name: sf4_maildev
51 | ports:
52 | - 8001:80
53 |
--------------------------------------------------------------------------------
/public/index.php:
--------------------------------------------------------------------------------
1 | load(__DIR__.'/../.env');
16 | }
17 |
18 | $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? 'dev';
19 | $debug = (bool) ($_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? ('prod' !== $env));
20 |
21 | if ($debug) {
22 | umask(0000);
23 |
24 | Debug::enable();
25 | }
26 |
27 | if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
28 | Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
29 | }
30 |
31 | if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
32 | Request::setTrustedHosts(explode(',', $trustedHosts));
33 | }
34 |
35 | $kernel = new Kernel($env, $debug);
36 | $request = Request::createFromGlobals();
37 | $response = $kernel->handle($request);
38 | $response->send();
39 | $kernel->terminate($request, $response);
40 |
--------------------------------------------------------------------------------
/src/Controller/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/romaricp/kit-starter-symfony-4-docker/f0c07df0256b029212f9dbd24bdf627876b77025/src/Controller/.gitignore
--------------------------------------------------------------------------------
/src/Kernel.php:
--------------------------------------------------------------------------------
1 | getProjectDir().'/var/cache/'.$this->environment;
21 | }
22 |
23 | public function getLogDir()
24 | {
25 | return $this->getProjectDir().'/var/log';
26 | }
27 |
28 | public function registerBundles()
29 | {
30 | $contents = require $this->getProjectDir().'/config/bundles.php';
31 | foreach ($contents as $class => $envs) {
32 | if (isset($envs['all']) || isset($envs[$this->environment])) {
33 | yield new $class();
34 | }
35 | }
36 | }
37 |
38 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
39 | {
40 | $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
41 | // Feel free to remove the "container.autowiring.strict_mode" parameter
42 | // if you are using symfony/dependency-injection 4.0+ as it's the default behavior
43 | $container->setParameter('container.autowiring.strict_mode', true);
44 | $container->setParameter('container.dumper.inline_class_loader', true);
45 | $confDir = $this->getProjectDir().'/config';
46 |
47 | $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');
48 | $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
49 | $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');
50 | $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
51 | }
52 |
53 | protected function configureRoutes(RouteCollectionBuilder $routes)
54 | {
55 | $confDir = $this->getProjectDir().'/config';
56 |
57 | $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');
58 | $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
59 | $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/symfony.lock:
--------------------------------------------------------------------------------
1 | {
2 | "psr/cache": {
3 | "version": "1.0.1"
4 | },
5 | "psr/container": {
6 | "version": "1.0.0"
7 | },
8 | "psr/log": {
9 | "version": "1.0.2"
10 | },
11 | "psr/simple-cache": {
12 | "version": "1.0.1"
13 | },
14 | "symfony/cache": {
15 | "version": "v4.1.6"
16 | },
17 | "symfony/config": {
18 | "version": "v4.1.6"
19 | },
20 | "symfony/console": {
21 | "version": "3.3",
22 | "recipe": {
23 | "repo": "github.com/symfony/recipes",
24 | "branch": "master",
25 | "version": "3.3",
26 | "ref": "e3868d2f4a5104f19f844fe551099a00c6562527"
27 | }
28 | },
29 | "symfony/debug": {
30 | "version": "v4.1.6"
31 | },
32 | "symfony/dependency-injection": {
33 | "version": "v4.1.6"
34 | },
35 | "symfony/dotenv": {
36 | "version": "v4.1.6"
37 | },
38 | "symfony/event-dispatcher": {
39 | "version": "v4.1.6"
40 | },
41 | "symfony/filesystem": {
42 | "version": "v4.1.6"
43 | },
44 | "symfony/finder": {
45 | "version": "v4.1.6"
46 | },
47 | "symfony/flex": {
48 | "version": "1.0",
49 | "recipe": {
50 | "repo": "github.com/symfony/recipes",
51 | "branch": "master",
52 | "version": "1.0",
53 | "ref": "e921bdbfe20cdefa3b82f379d1cd36df1bc8d115"
54 | }
55 | },
56 | "symfony/framework-bundle": {
57 | "version": "3.3",
58 | "recipe": {
59 | "repo": "github.com/symfony/recipes",
60 | "branch": "master",
61 | "version": "3.3",
62 | "ref": "1717e67afa995e4f01a25ba9ae7aca5b2327bcaa"
63 | }
64 | },
65 | "symfony/http-foundation": {
66 | "version": "v4.1.6"
67 | },
68 | "symfony/http-kernel": {
69 | "version": "v4.1.6"
70 | },
71 | "symfony/polyfill-mbstring": {
72 | "version": "v1.9.0"
73 | },
74 | "symfony/routing": {
75 | "version": "4.0",
76 | "recipe": {
77 | "repo": "github.com/symfony/recipes",
78 | "branch": "master",
79 | "version": "4.0",
80 | "ref": "5f514d9d3b8a8aac3d62ae6a86b18b90ed0c7826"
81 | }
82 | },
83 | "symfony/yaml": {
84 | "version": "v4.1.6"
85 | }
86 | }
87 |
--------------------------------------------------------------------------------