diff --git a/src/Command/Config/ExportCommand.php b/src/Command/Config/ExportCommand.php index 4eaf63ab9..66f52eb27 100644 --- a/src/Command/Config/ExportCommand.php +++ b/src/Command/Config/ExportCommand.php @@ -98,6 +98,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $tar = $input->getOption('tar'); $removeUuid = $input->getOption('remove-uuid'); $removeHash = $input->getOption('remove-config-hash'); + $drupal_root = $this->drupalFinder->getComposerRoot(); if (!$directory) { $directory = config_get_config_directory(CONFIG_SYNC_DIRECTORY); @@ -105,7 +106,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $fileSystem = new Filesystem(); try { - $fileSystem->mkdir($directory); + $fileSystem->mkdir($drupal_root."/".$directory); } catch (IOExceptionInterface $e) { $this->getIo()->error( sprintf(