]> Raphaƫl G. Git Repositories - blog/blob - doctrineyamlnodeprecated.patch
Update symfony recipes ref
[blog] / doctrineyamlnodeprecated.patch
1 diff -urNp vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php.orig vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php
2 --- vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php.orig 2023-08-01 09:33:00.534907403 +0200
3 +++ vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php 2023-08-01 09:33:18.665060011 +0200
4 @@ -29,8 +29,6 @@ use function substr;
5
6 /**
7 * The YamlDriver reads the mapping metadata from yaml schema files.
8 - *
9 - * @deprecated 2.7 This class is being removed from the ORM and won't have any replacement
10 */
11 class YamlDriver extends FileDriver
12 {
13 @@ -41,12 +39,6 @@ class YamlDriver extends FileDriver
14 */
15 public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENSION)
16 {
17 - Deprecation::trigger(
18 - 'doctrine/orm',
19 - 'https://github.com/doctrine/orm/issues/8465',
20 - 'YAML mapping driver is deprecated and will be removed in Doctrine ORM 3.0, please migrate to attribute or XML driver.'
21 - );
22 -
23 if (! class_exists(Yaml::class)) {
24 throw new LogicException(
25 'The YAML metadata driver cannot be enabled because the "symfony/yaml" library'
26 diff -urNp vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/SimplifiedYamlDriver.php.orig vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/SimplifiedYamlDriver.php
27 --- vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/SimplifiedYamlDriver.php.orig 2023-08-01 09:33:07.084962540 +0200
28 +++ vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/SimplifiedYamlDriver.php 2023-08-01 09:33:21.845086780 +0200
29 @@ -8,8 +8,6 @@ use Doctrine\Persistence\Mapping\Driver\
30
31 /**
32 * YamlDriver that additionally looks for mapping information in a global file.
33 - *
34 - * @deprecated This class is being removed from the ORM and won't have any replacement
35 */
36 class SimplifiedYamlDriver extends YamlDriver
37 {