for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Controller\User;
use Slim\Http\Request;
use Slim\Http\Response;
final class GetOne extends Base
{
/**
* @param array<string> $args
*/
public function __invoke(
Request $request,
Response $response,
array $args
): Response {
$user = $this->getServiceFindUser()->getOne((int) $args['id']);
return $this->jsonResponse($response, 'success', $user, 200);
}