Skip to content

Commit

Permalink
Dump autoload: Try delete package.neon first.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Dec 31, 2020
1 parent 1774377 commit 5b38d7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PackageRegistrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5b38d7a

Please sign in to comment.