Skip to content

Commit f369d15

Browse files
author
DKravtsov
committed
Symfony 8 and PHP 8.5.
1 parent 547c45c commit f369d15

File tree

7 files changed

+61
-35
lines changed

7 files changed

+61
-35
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
run: make info
3030
- name: Test bundle with Symfony 7
3131
run: make test-using-symfony-7
32+
- name: Test bundle with Symfony 8
33+
run: make test-using-symfony-8
3234
- name: Display information
3335
run: make info
3436
- name: Stop the docker images

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1.7-labs
2-
FROM php:8.4-fpm
2+
FROM php:8.5-fpm
33

44
# set main params
55
ARG BUILD_ARGUMENT_ENV=dev
@@ -37,8 +37,8 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y \
3737
&& docker-php-ext-install \
3838
pdo_mysql \
3939
sockets \
40-
intl \
41-
opcache \
40+
# intl \
41+
# opcache \
4242
zip \
4343
&& apt-get install --no-install-recommends -y \
4444
$(debsecan --suite bookworm --format packages --only-fixed) \

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) Dmitriy Kravtsov
3+
Copyright (c) Dmitry Kravtsov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,15 @@ test-using-symfony-6:
8787

8888
test-using-symfony-7:
8989
@make clean
90-
@make exec-bash cmd="composer create-project symfony/skeleton:'7.2.x' ."
90+
@make exec-bash cmd="composer create-project symfony/skeleton:'7.4.x' ."
91+
@make exec-bash cmd="composer require webapp --no-interaction"
92+
@make transfer-monolog-config
93+
@make install-bundle
94+
@make cache-clear-warmup
95+
96+
test-using-symfony-8:
97+
@make clean
98+
@make exec-bash cmd="composer create-project symfony/skeleton:'8.0.x' ."
9199
@make exec-bash cmd="composer require webapp --no-interaction"
92100
@make transfer-monolog-config
93101
@make install-bundle

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"email": "javiereguiluz@gmail.com"
2020
},
2121
{
22-
"name": "Dmitriy Kravtsov",
22+
"name": "Dmitry Kravtsov",
2323
"email": "dmytro.kravtsov@systemsdk.com"
2424
}
2525
],
@@ -29,8 +29,8 @@
2929
"require": {
3030
"php": ">=8.1",
3131
"monolog/monolog": "~3.0",
32-
"symfony/yaml": "^6.1|^7.0",
33-
"symfony/framework-bundle": "^6.1|^7.0"
32+
"symfony/yaml": "^6.1|^7.0|^8.0",
33+
"symfony/framework-bundle": "^6.1|^7.0|^8.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

docker/dev/php.ini

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@
129129
; Development Value: 4096
130130
; Production Value: 4096
131131

132-
; register_argc_argv
133-
; Default Value: On
134-
; Development Value: Off
135-
; Production Value: Off
136-
137132
; request_order
138133
; Default Value: None
139134
; Development Value: "GP"
@@ -327,11 +322,6 @@ serialize_precision = -1
327322
; https://php.net/disable-functions
328323
disable_functions =
329324

330-
; This directive allows you to disable certain classes.
331-
; It receives a comma-delimited list of class names.
332-
; https://php.net/disable-classes
333-
disable_classes =
334-
335325
; Colors for Syntax Highlighting mode. Anything that's acceptable in
336326
; <span style="color: ???????"> would work.
337327
; https://php.net/syntax-highlighting
@@ -436,6 +426,7 @@ max_input_time = 60
436426
; Maximum amount of memory a script may consume
437427
; https://php.net/memory-limit
438428
memory_limit = 2048M
429+
max_memory_limit = -1
439430

440431
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
441432
; Error handling and logging ;
@@ -536,12 +527,6 @@ ignore_repeated_errors = Off
536527
; https://php.net/ignore-repeated-source
537528
ignore_repeated_source = Off
538529

539-
; If this parameter is set to Off, then memory leaks will not be shown (on
540-
; stdout or in the log). This is only effective in a debug compile, and if
541-
; error reporting includes E_WARNING in the allowed list
542-
; https://php.net/report-memleaks
543-
report_memleaks = On
544-
545530
; This setting is off by default.
546531
;report_zend_debug = 0
547532

@@ -620,6 +605,12 @@ report_memleaks = On
620605
; Development value: 0
621606
; Production value: 0
622607

608+
; This directive controls whether PHP will output the backtrace of fatal errors.
609+
; Default Value: On
610+
; Development Value: On
611+
; Production Value: On
612+
;fatal_error_backtraces = On
613+
623614
;;;;;;;;;;;;;;;;;
624615
; Data Handling ;
625616
;;;;;;;;;;;;;;;;;
@@ -669,14 +660,12 @@ request_order = "GP"
669660
; that were passed when the script was invoked. These arrays are extremely
670661
; useful when running scripts from the command line. When this directive is
671662
; enabled, registering these variables consumes CPU cycles and memory each time
672-
; a script is executed. For performance reasons, this feature should be disabled
673-
; on production servers.
674-
; Note: This directive is hardcoded to On for the CLI SAPI
675-
; Default Value: On
676-
; Development Value: Off
677-
; Production Value: Off
663+
; a script is executed. For security reasons, this feature should be disabled
664+
; for non-CLI SAPIs.
665+
; Note: This directive is ignored for the CLI SAPI
666+
; This directive is deprecated.
678667
; https://php.net/register-argc-argv
679-
register_argc_argv = Off
668+
;register_argc_argv = Off
680669

681670
; When enabled, the ENV, REQUEST and SERVER variables are created when they're
682671
; first used (Just In Time) instead of when the script starts. If these
@@ -817,6 +806,12 @@ enable_dl = Off
817806
; https://php.net/fastcgi.impersonate
818807
;fastcgi.impersonate = 1
819808

809+
; Prevent decoding of SCRIPT_FILENAME when using Apache ProxyPass or
810+
; ProxyPassMatch. This should be used if script file paths are not stored
811+
; in an encoded format on the file system.
812+
; Default is 1.
813+
;fastcgi.script_path_encoded = 0
814+
820815
; Disable logging through FastCGI connection. PHP's default behavior is to enable
821816
; this feature.
822817
;fastcgi.logging = 0
@@ -953,8 +948,6 @@ default_socket_timeout = 60
953948
;extension=xsl
954949
;extension=zip
955950

956-
;zend_extension=opcache
957-
958951
;;;;;;;;;;;;;;;;;;;
959952
; Module Settings ;
960953
;;;;;;;;;;;;;;;;;;;
@@ -1010,8 +1003,12 @@ cli_server.color = On
10101003
; This directive allows you to produce PHP errors when some error
10111004
; happens within intl functions. The value is the level of the error produced.
10121005
; Default is 0, which does not produce any errors.
1006+
; This directive is deprecated.
10131007
;intl.error_level = E_WARNING
1014-
;intl.use_exceptions = 0
1008+
; If enabled this directive indicates that when an error occurs within an
1009+
; intl function a IntlException should be thrown.
1010+
; Default is Off, which means errors need to be handled manually.
1011+
;intl.use_exceptions = On
10151012

10161013
[sqlite3]
10171014
; Directory pointing to SQLite3 extensions
@@ -1089,6 +1086,14 @@ mail.add_x_header = Off
10891086
; RFC 2822 non conformant MTA.
10901087
mail.mixed_lf_and_crlf = Off
10911088

1089+
; Control line ending mode for mail messages and headers.
1090+
; Possible values: "crlf" (default), "lf", "mixed", "os"
1091+
; - crlf: Use CRLF line endings
1092+
; - lf: Use LF line endings only (converts CRLF in message to LF)
1093+
; - mixed: Same as mail.mixed_lf_and_crlf = On
1094+
; - os: Use CRLF on Windows, LF on other systems
1095+
mail.cr_lf_mode = crlf
1096+
10921097
; The path to a log file that will log all mail() calls. Log entries include
10931098
; the full path of the script, line number, To address and headers.
10941099
;mail.log =
@@ -1312,6 +1317,9 @@ session.use_cookies = 1
13121317
; https://php.net/session.cookie-secure
13131318
;session.cookie_secure =
13141319

1320+
; https://php.net/session.cookie-partitioned
1321+
;session.cookie_partitioned = 0
1322+
13151323
; This option forces PHP to fetch and use a cookie for storing and maintaining
13161324
; the session id. We encourage this operation as it's very helpful in combating
13171325
; session hijacking when not specifying and managing your own session id. It is
@@ -1851,6 +1859,14 @@ ldap.max_links = -1
18511859
; SSL stream context option.
18521860
;openssl.capath=
18531861

1862+
; The libctx is an OpenSSL library context. OpenSSL defines a default library
1863+
; context, but PHP OpenSSL also defines its own library context to avoid
1864+
; interference with other libraries using OpenSSL and to provide an independent
1865+
; context for each thread in ZTS. Possible values:
1866+
; "custom" - use a custom library context (default)
1867+
; "default" - use the default OpenSSL library context
1868+
;openssl.libctx=custom
1869+
18541870
[ffi]
18551871
; FFI API restriction. Possible values:
18561872
; "preload" - enabled in CLI scripts and preloaded files (default)

src/DependencyInjection/EasyLogExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use InvalidArgumentException;
88
use Symfony\Component\Config\FileLocator;
99
use Symfony\Component\DependencyInjection\ContainerBuilder;
10+
use Symfony\Component\DependencyInjection\Extension\Extension;
1011
use Symfony\Component\DependencyInjection\Loader;
11-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
1212

1313
/**
1414
* Class EasyLogExtension

0 commit comments

Comments
 (0)