Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/guide/security/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,9 @@ use Yiisoft\User\CurrentUser;

final readonly class SiteController
{
public function __construct(
private ServerRequestInterface $request,
private CurrentUser $user,
) {}
public function __construct(private CurrentUser $user) {}

public function index(): ResponseInterface
public function index(ServerRequestInterface $request): ResponseInterface
{
if ($this->user->isGuest()) {
// user is guest
Expand Down