umask($old);
} if (!
is_writable($dir)) { $output->
writeln('<error>Output dir ' .
$input->
getOption('file'
) . ' is not writable, aborting</error>'
);
return 1;
} /** @var \Shopware\Components\Snippet\DatabaseHandler $databaseLoader */
$databaseLoader =
$this->container->
get(\Shopware\Components\Snippet\DatabaseHandler::
class);
$databaseLoader->
setOutput($output);
$databaseLoader->
dumpFromDatabase($input->
getOption('target'
),
$input->
getArgument('locale'
));
return 0;
}}