From 5b38d7ad09ea9f2059b64acd2abb34587b2049a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Thu, 31 Dec 2020 21:09:29 +0100 Subject: [PATCH] Dump autoload: Try delete package.neon first. --- src/PackageRegistrator.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PackageRegistrator.php b/src/PackageRegistrator.php index cea3287..ac9ea41 100644 --- a/src/PackageRegistrator.php +++ b/src/PackageRegistrator.php @@ -136,6 +136,11 @@ public static function composerPostAutoloadDump(): void echo '---------------------------------' . "\n\n"; } + try { + FileSystem::delete(dirname(__DIR__, 4) . '/app/config/package.neon'); + } catch (\Throwable $e) { + trigger_error($e->getMessage()); + } echo 'Run Composer autoload: '; $composerFileAutoloadPath = __DIR__ . '/../../../composer/autoload_files.php'; if (\is_file($composerFileAutoloadPath)) {