Fix normalizer not being prefixed correctly

[MAILPOET-3105]
This commit is contained in:
Pavel Dohnal
2020-08-13 13:41:38 +02:00
committed by Veljko V
parent 6b286bdccc
commit 585a4d0332
4 changed files with 18 additions and 3 deletions

View File

@ -54,6 +54,7 @@
"vendor-prefixed/symfony/polyfill-mbstring/bootstrap.php",
"vendor-prefixed/symfony/polyfill-php72/bootstrap.php",
"vendor-prefixed/symfony/polyfill-intl-idn/bootstrap.php",
"vendor-prefixed/symfony/polyfill-intl-normalizer/bootstrap.php",
"vendor-prefixed/swiftmailer/swiftmailer/lib/swift_required.php"
],
"psr-4": {

View File

@ -15,6 +15,7 @@
"symfony/polyfill-iconv": "1.18.1",
"symfony/polyfill-intl-idn": "1.18.1",
"symfony/polyfill-mbstring": "1.18.1",
"symfony/polyfill-intl-normalizer": "1.18.1",
"symfony/polyfill-php72": "1.18.1",
"symfony/validator": "3.4.43",
"twig/twig": "2.12.5"
@ -31,7 +32,8 @@
"php fix-doctrine.php",
"php fix-swiftmailer.php",
"php fix-validator.php",
"php fix-monolog.php"
"php fix-monolog.php",
"php fix-symfony-polyfill.php"
]
},
"config": {

View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "f3b48338d317059f392130193f33cf18",
"content-hash": "ec6d7695defed3098c8785070f8daeef",
"packages": [
{
"name": "cerdic/css-tidy",
@ -2129,5 +2129,6 @@
"platform-dev": [],
"platform-overrides": {
"php": "7.0.33"
}
},
"plugin-api-version": "1.1.0"
}

View File

@ -0,0 +1,11 @@
<?php
// throw exception if anything fails
set_error_handler(function ($severity, $message, $file, $line) {
throw new ErrorException($message, 0, $severity, $file, $line);
});
$file = __DIR__ . '/../vendor-prefixed/symfony/polyfill-intl-idn/Idn.php';
$data = file_get_contents($file);
$data = str_replace('use Normalizer;', 'use MailPoetVendor\\Normalizer;', $data);
file_put_contents($file, $data);