Skip to content

Commit

Permalink
Merge pull request #61 from kayaArvatis/fix-export-dir
Browse files Browse the repository at this point in the history
fix export command wrong file path use project dir instead of root dir
  • Loading branch information
mitelg authored Jan 5, 2024
2 parents d0a7353 + 8a4370f commit f344a57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/services/commands.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<argument type="service" id="SwagImportExport\Components\Factories\ProfileFactory"/>
<argument type="service" id="models"/>
<argument type="service" id="SwagImportExport\Components\Session\SessionService"/>
<argument>%kernel.root_dir%</argument>
<argument>%kernel.project_dir%</argument>
<argument type="service" id="SwagImportExport\Components\Logger\Logger"/>
<argument type="service" id="SwagImportExport\Components\Service\ExportService"/>
<argument type="service" id="config"/>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Helper/CommandTestCaseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ private function addCreatedExportFile(string $file): void

private function getFilePath(string $fileName): string
{
return Shopware()->DocPath() . $fileName;
return sprintf('%s/%s', $this->getContainer()->getParameter('kernel.project_dir'), $fileName);
}
}

0 comments on commit f344a57

Please sign in to comment.