CodeExplorer printNotice example
$databaseWriter->
setUpdate((bool) $snippetCount);
foreach ($finder as $file) { $filePath =
$file->
getRelativePathname();
if (strpos($filePath, '.ini'
) == \
strlen($filePath) - 4
) { $namespace =
substr($filePath, 0, -4
);
$namespace =
str_replace('\\', '/',
$namespace);
} else { continue;
} $this->
printNotice('<info>Importing ' .
$namespace . ' namespace</info>'
);
$namespaceData =
new Enlight_Components_Snippet_Namespace([ 'adapter' =>
$inputAdapter,
'name' =>
$namespace,
]);
foreach ($namespaceData->
read()->
toArray() as $index =>
$values) { if ($index == 'default'
) { $locale =
$defaultLocale;
} else { $locale =
$localeRepository->
findOneBy(['locale' =>
$index]);
}