public function loadToDatabase($snippetsDir = null,
$force = false,
$namespacePrefix = ''
) { $snippetsDir =
$snippetsDir ?:
$this->kernelRoot . '/snippets/';
if (!
file_exists($snippetsDir)) { if ($snippetsDir == ($this->kernelRoot . '/snippets/'
)) { $this->
printWarning('<info>No snippets folder found in Shopware core, skipping</info>'
);
} return;
} $localeRepository =
$this->em->
getRepository('Shopware\Models\Shop\Locale'
);
$inputAdapter =
new Enlight_Config_Adapter_File([ 'configDir' =>
$snippetsDir,
]);