From 903dfab9281157479ff00520d581b4089b77903f Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Thu, 13 May 2021 23:59:47 +0100 Subject: [PATCH] restore --- scoper.php | 9 --------- utils/compiler/src/PhpScoper/StaticEasyPrefixer.php | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/scoper.php b/scoper.php index 50e7e08328b..36a7d792741 100644 --- a/scoper.php +++ b/scoper.php @@ -97,15 +97,6 @@ function (string $filePath, string $prefix, string $content): string { ); }, - // unprefixed ContainerConfigurator - function (string $filePath, string $prefix, string $content): string { - return Strings::replace( - $content, ' - #' . $prefix . '\\\\Symfony\\\\Component\\\\DependencyInjection\\\\Loader\\\\Configurator\\\\ContainerConfigurator#', - 'Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator' - ); - }, - // get version for prefixed version function (string $filePath, string $prefix, string $content): string { if (! Strings::endsWith($filePath, 'src/Configuration/Configuration.php')) { diff --git a/utils/compiler/src/PhpScoper/StaticEasyPrefixer.php b/utils/compiler/src/PhpScoper/StaticEasyPrefixer.php index 4387b22a47e..013617b2c17 100644 --- a/utils/compiler/src/PhpScoper/StaticEasyPrefixer.php +++ b/utils/compiler/src/PhpScoper/StaticEasyPrefixer.php @@ -11,7 +11,7 @@ final class StaticEasyPrefixer */ public const EXCLUDED_CLASSES = [ // part of public interface of configs.php - // 'Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', + 'Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', // this is not prefixed on few places by php-scoper by default, probably some bug 'Doctrine\Inflector\Inflector', // for SmartFileInfo