Commit 14a8f5a7 authored by Sean Madsen's avatar Sean Madsen

Merge branch 'refactor-model' into book-home-pages

parents 0577e982 1ab4d257
......@@ -28,12 +28,16 @@ class DocsPublishCommand extends ContainerAwareCommand {
/** @var \AppBundle\Utils\Publisher $publisher */
$publisher = $this->getContainer()->get('publisher');
$identifiers = $input->getArgument('identifiers');
foreach ($identifiers as $identifier) {
$publisher->publish($identifier);
foreach ($publisher->getMessages() as $message) {
$output->writeln($message['label'] . ': ' . $message['content']);
if ($identifiers) {
foreach ($identifiers as $identifier) {
$publisher->publish($identifier);
}
$publisher->clearMessages();
}
else {
$publisher->publish();
}
foreach ($publisher->getMessages() as $message) {
$output->writeln($message['label'] . ': ' . $message['content']);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment