$output->
writeln('<info></info>'
);
$output->
writeln('<info>' . \
count($snippets) . ' missing snippets detected</info>'
);
$outputAdapter =
new Enlight_Config_Adapter_File([ 'configDir' =>
$input->
getOption('target'
) . '/',
]);
$data =
[];
foreach ($snippets as $snippet) { if (!\
array_key_exists($snippet['namespace'
],
$data)) { $data[$snippet['namespace'
]] =
new Enlight_Components_Snippet_Namespace([ 'name' =>
$snippet['namespace'
],
'section' =>
[ $locale->
getLocale(),
],
]);
} $content =
$data[$snippet['namespace'
]];
$content->
set($snippet['name'
],
isset($snippet['value'
]) ?
$snippet['value'
] : ''
);
} $output->
writeln('<info>' . \
count($data) . ' namespaces written</info>'
);