-
Elise Moreau authoredElise Moreau authored
ListGroupsAction.php 421 B
<?php
declare(strict_types=1);
namespace App\Application\Actions\Group;
use Psr\Http\Message\ResponseInterface as Response;
class ListGroupsAction extends GroupAction
{
/**
* {@inheritdoc}
*/
protected function action(): Response
{
$group = $this->groupRepository->findAll();
$this->logger->info("Group list was viewed.");
return $this->respondWithData($group);
}
}