ynh_extension_meeo/actions/NotesAction.php

26 lines
505 B
PHP
Raw Permalink Normal View History

2024-07-04 05:32:34 +00:00
<?php
namespace YesWiki\Meeo;
use YesWiki\Core\YesWikiAction;
2024-07-19 14:52:37 +00:00
use YesWiki\Meeo\Service\NoteManager;
2024-07-04 05:32:34 +00:00
class NotesAction extends YesWikiAction
{
public function formatArguments($arg)
{
return [];
}
public function run()
{
2024-08-03 10:07:23 +00:00
try {
$noteManager = $this->getService(NoteManager::class);
return $noteManager->viewBulletins();
} catch (Exception $e) {
return 'Exception reçue : '.$e->getMessage()."\n";
}
2024-07-04 05:32:34 +00:00
}
}