public function fire()
{
$arguments = $this->getArgumentsConsole();
$categoryGroup = array_shift($arguments);
$arguments = $arguments[0];
$categories = explode(',', $arguments);
$groupCategories = $this->notifynderGroup->addMultipleCategoriesToGroup($categoryGroup, $categories);
if ($groupCategories) {
foreach ($groupCategories->categories as $category) {
$this->info("Category {$category->name} has been associated to the group {$groupCategories->name}");
}
} else {
$this->error('The name must be a string with dots as namespaces');
}
}