mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-02 20:19:43 +00:00
Create a connector to synchronize with zimbra calendars
This commit is contained in:
@@ -26,6 +26,7 @@ class AddressRender implements ChillEntityRenderInterface
|
||||
'with_delimiter' => false,
|
||||
'has_no_address' => false,
|
||||
'multiline' => true,
|
||||
'separator' => ' — ',
|
||||
/* deprecated */
|
||||
'extended_infos' => false,
|
||||
];
|
||||
@@ -114,7 +115,9 @@ class AddressRender implements ChillEntityRenderInterface
|
||||
|
||||
public function renderString($addr, array $options): string
|
||||
{
|
||||
return implode(' — ', $this->renderLines($addr));
|
||||
$opts = [...self::DEFAULT_OPTIONS, ...$options];
|
||||
|
||||
return implode($opts['separator'], $this->renderLines($addr));
|
||||
}
|
||||
|
||||
public function supports($entity, array $options): bool
|
||||
|
||||
@@ -52,7 +52,7 @@ class CommentRender implements ChillEntityRenderInterface
|
||||
|
||||
public function renderString($entity, array $options): string
|
||||
{
|
||||
return $entity->getComment();
|
||||
return (string) $entity->getComment();
|
||||
}
|
||||
|
||||
public function supports($entity, array $options): bool
|
||||
|
||||
Reference in New Issue
Block a user