Skip to content

Commit

Permalink
Keep symlinking the old assets directory if the components are instal…
Browse files Browse the repository at this point in the history
…led there
  • Loading branch information
leofeyer committed May 24, 2024
1 parent 5e07467 commit e41594b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core-bundle/src/Command/SymlinksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ private function generateSymlinks(): void
$this->symlinkModules();
$this->symlinkThemes();

// Symlink the assets directory if the Contao components were installed
// there instead of in public/assets (backwards compatibility)
if (is_dir($this->projectDir.'/assets/contao')) {
$this->symlink('assets', Path::join($this->webDir, 'assets'));

Check warning on line 93 in core-bundle/src/Command/SymlinksCommand.php

View check run for this annotation

Codecov / codecov/patch

core-bundle/src/Command/SymlinksCommand.php#L93

Added line #L93 was not covered by tests
}

// Symlink the themes directory
$this->symlink('system/themes', Path::join($this->webDir, 'system/themes'));

Expand Down

0 comments on commit e41594b

Please sign in to comment.