for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Controller\Note;
use Slim\Http\Request;
use Slim\Http\Response;
class GetAll extends Base
{
public function __invoke(Request $request, Response $response, array $args): Response
$notes = $this->getAllNoteService()->getAll();
return $this->jsonResponse($response, 'success', $notes, 200);
}