Fix normalizer not being prefixed correctly
[MAILPOET-3105]
This commit is contained in:
@ -54,6 +54,7 @@
|
|||||||
"vendor-prefixed/symfony/polyfill-mbstring/bootstrap.php",
|
"vendor-prefixed/symfony/polyfill-mbstring/bootstrap.php",
|
||||||
"vendor-prefixed/symfony/polyfill-php72/bootstrap.php",
|
"vendor-prefixed/symfony/polyfill-php72/bootstrap.php",
|
||||||
"vendor-prefixed/symfony/polyfill-intl-idn/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"
|
"vendor-prefixed/swiftmailer/swiftmailer/lib/swift_required.php"
|
||||||
],
|
],
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
"symfony/polyfill-iconv": "1.18.1",
|
"symfony/polyfill-iconv": "1.18.1",
|
||||||
"symfony/polyfill-intl-idn": "1.18.1",
|
"symfony/polyfill-intl-idn": "1.18.1",
|
||||||
"symfony/polyfill-mbstring": "1.18.1",
|
"symfony/polyfill-mbstring": "1.18.1",
|
||||||
|
"symfony/polyfill-intl-normalizer": "1.18.1",
|
||||||
"symfony/polyfill-php72": "1.18.1",
|
"symfony/polyfill-php72": "1.18.1",
|
||||||
"symfony/validator": "3.4.43",
|
"symfony/validator": "3.4.43",
|
||||||
"twig/twig": "2.12.5"
|
"twig/twig": "2.12.5"
|
||||||
@ -31,7 +32,8 @@
|
|||||||
"php fix-doctrine.php",
|
"php fix-doctrine.php",
|
||||||
"php fix-swiftmailer.php",
|
"php fix-swiftmailer.php",
|
||||||
"php fix-validator.php",
|
"php fix-validator.php",
|
||||||
"php fix-monolog.php"
|
"php fix-monolog.php",
|
||||||
|
"php fix-symfony-polyfill.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
5
prefixer/composer.lock
generated
5
prefixer/composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "f3b48338d317059f392130193f33cf18",
|
"content-hash": "ec6d7695defed3098c8785070f8daeef",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "cerdic/css-tidy",
|
"name": "cerdic/css-tidy",
|
||||||
@ -2129,5 +2129,6 @@
|
|||||||
"platform-dev": [],
|
"platform-dev": [],
|
||||||
"platform-overrides": {
|
"platform-overrides": {
|
||||||
"php": "7.0.33"
|
"php": "7.0.33"
|
||||||
}
|
},
|
||||||
|
"plugin-api-version": "1.1.0"
|
||||||
}
|
}
|
||||||
|
11
prefixer/fix-symfony-polyfill.php
Normal file
11
prefixer/fix-symfony-polyfill.php
Normal 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);
|
Reference in New Issue
Block a user