ynh_extension_meeo/actions/ElevesAction.php
2024-08-02 18:53:08 +02:00

24 lines
No EOL
501 B
PHP

<?php
use YesWiki\Core\YesWikiAction;
use YesWiki\Bazar\Service\EntryManager;
use YesWiki\Bazar\Service\ListManager;
use YesWiki\Meeo\Service\EleveManager;
class ElevesAction extends YesWikiAction
{
public function formatArguments($arg)
{
return [];
}
public function run()
{
try {
$eleveManager = $this->getService(EleveManager::class);
return $eleveManager->view();
} catch (Exception $e) {
echo 'Exception reçue : '. $e->getMessage() ."\n";
}
}
}