Skip to content

Commit

Permalink
Remove 'app' from DumpCommand path (#345)
Browse files Browse the repository at this point in the history
* Remove 'app' from DumpCommand path

app path does not longer exists since sf4

* Rename kernelRootDir to projectDir in DumpCommand
  • Loading branch information
mfadul24 authored Dec 18, 2023
1 parent df5db0f commit 3b03f3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Command/DumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DumpCommand extends Command
/**
* @var string
*/
private $kernelRootDir;
private $projectDir;

/**
* @var string
Expand All @@ -34,12 +34,12 @@ class DumpCommand extends Command

/**
* @param TranslationDumper $dumper
* @param string $kernelRootDir
* @param string $projectDir
*/
public function __construct(TranslationDumper $dumper, $projectDir)
{
$this->dumper = $dumper;
$this->kernelRootDir = $projectDir . '/app';
$this->projectDir = $projectDir;

parent::__construct();
}
Expand Down Expand Up @@ -82,7 +82,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
{
parent::initialize($input, $output);

$this->targetPath = $input->getArgument('target') ?: sprintf('%s/../web/js', $this->kernelRootDir);
$this->targetPath = $input->getArgument('target') ?: sprintf('%s/web/js', $this->projectDir);
}

protected function execute(InputInterface $input, OutputInterface $output): int
Expand Down

0 comments on commit 3b03f3a

Please sign in to comment.