From fd1ce45afb61b3ebdbfeef1189972ff42b3e1027 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Thu, 13 May 2021 19:16:52 +0100 Subject: [PATCH] hotfix --- bootstrap.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstrap.php b/bootstrap.php index daf0ed94c96..a91d01fd102 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -28,4 +28,11 @@ spl_autoload_register(function (string $class): void { require $filePath; } } + + if ($class === 'Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator') { + // avoid duplicated autoload bug in Rector demo runner + if (class_exists('Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator', false)) { + return; + } + } });