Skip to content

Commit

Permalink
Fix elfinder:install root dir (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-fruhbauer authored Jan 24, 2021
1 parent 4202cb8 commit c40b62f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Command/ElFinderInstallerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ protected function configure(): void

protected function execute(InputInterface $input, OutputInterface $output): int
{
$publicDir = $this->parameterBag->get('kernel.project_dir').'/public/bundles/fmelfinder';
$rootDir = $this->parameterBag->get('kernel.project_dir');
$publicDir = $rootDir.'/public/bundles/fmelfinder';

$this->fileSystem->mirror(self::ELFINDER_CSS_DIR, $publicDir.'/css');
$this->fileSystem->mirror(self::ELFINDER_IMG_DIR, $publicDir.'/img');
$this->fileSystem->mirror(self::ELFINDER_JS_DIR, $publicDir.'/js');
$this->fileSystem->mirror(self::ELFINDER_SOUNDS_DIR, $publicDir.'/sounds');
$this->fileSystem->mirror($rootDir . '/' . self::ELFINDER_CSS_DIR, $publicDir.'/css');
$this->fileSystem->mirror($rootDir . '/' . self::ELFINDER_IMG_DIR, $publicDir.'/img');
$this->fileSystem->mirror($rootDir . '/' . self::ELFINDER_JS_DIR, $publicDir.'/js');
$this->fileSystem->mirror($rootDir . '/' . self::ELFINDER_SOUNDS_DIR, $publicDir.'/sounds');

$output->writeln('elFinder assets successfully installed');

Expand Down

0 comments on commit c40b62f

Please sign in to comment.