Skip to content

Commit 1fec3c9

Browse files
authored
Delete autoload_psr4.php when update Joomla using CLI (#40437)
1 parent 853d324 commit 1fec3c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libraries/src/Console/UpdateCoreCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,13 @@ private function updateJoomlaCore($updatemodel): bool
224224
$this->progressBar->advance();
225225
$this->progressBar->setMessage("Cleaning up ...");
226226

227+
// Remove the administrator/cache/autoload_psr4.php file
228+
$autoloadFile = JPATH_CACHE . '/autoload_psr4.php';
229+
230+
if (File::exists($autoloadFile)) {
231+
File::delete($autoloadFile);
232+
}
233+
227234
// Remove the xml
228235
if (file_exists(JPATH_BASE . '/joomla.xml')) {
229236
File::delete(JPATH_BASE . '/joomla.xml');

0 commit comments

Comments
 (0)