Move slack, hipchat and jabber integrations to plugins

This commit is contained in:
Frederic Guillot
2015-10-17 22:19:49 -04:00
parent 9283fb88d8
commit 09da289c2f
68 changed files with 544 additions and 1644 deletions

View File

@@ -108,4 +108,20 @@ abstract class NotificationType extends Base
{
return $this->hiddens;
}
/**
* Keep only loaded notification types
*
* @access public
* @param string[] $types
* @return array
*/
public function filterTypes(array $types)
{
$classes = $this->classes;
return array_filter($types, function($type) use ($classes) {
return isset($classes[$type]);
});
}
}