summaryrefslogtreecommitdiff
path: root/vendor/symfony/deprecation-contracts/README.md
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-10-18 00:08:23 +0200
committerpolo <ordipolo@gmx.fr>2026-10-18 00:10:03 +0200
commit05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch)
treecf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/symfony/deprecation-contracts/README.md
parent32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff)
downloadAppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/symfony/deprecation-contracts/README.md')
-rw-r--r--vendor/symfony/deprecation-contracts/README.md26
1 files changed, 0 insertions, 26 deletions
diff --git a/vendor/symfony/deprecation-contracts/README.md b/vendor/symfony/deprecation-contracts/README.md
deleted file mode 100644
index 9814864..0000000
--- a/vendor/symfony/deprecation-contracts/README.md
+++ /dev/null
@@ -1,26 +0,0 @@
1Symfony Deprecation Contracts
2=============================
3
4A generic function and convention to trigger deprecation notices.
5
6This package provides a single global function named `trigger_deprecation()` that triggers silenced deprecation notices.
7
8By using a custom PHP error handler such as the one provided by the Symfony ErrorHandler component,
9the triggered deprecations can be caught and logged for later discovery, both on dev and prod environments.
10
11The function requires at least 3 arguments:
12 - the name of the Composer package that is triggering the deprecation
13 - the version of the package that introduced the deprecation
14 - the message of the deprecation
15 - more arguments can be provided: they will be inserted in the message using `printf()` formatting
16
17Example:
18```php
19trigger_deprecation('symfony/blockchain', '8.9', 'Using "%s" is deprecated, use "%s" instead.', 'bitcoin', 'fabcoin');
20```
21
22This will generate the following message:
23`Since symfony/blockchain 8.9: Using "bitcoin" is deprecated, use "fabcoin" instead.`
24
25While not recommended, the deprecation notices can be completely ignored by declaring an empty
26`function trigger_deprecation() {}` in your application.