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
8 changes: 4 additions & 4 deletions src/Controller/SessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SessionController extends FOSRestController implements ClassResourceInterf
/**
* @var AdministratorTokenRepository
*/
private $administratorTokenRepository = null;
private $tokenRepository = null;

/**
* @param Authentication $authentication
Expand All @@ -49,7 +49,7 @@ public function __construct(
) {
$this->authentication = $authentication;
$this->administratorRepository = $administratorRepository;
$this->administratorTokenRepository = $tokenRepository;
$this->tokenRepository = $tokenRepository;
}

/**
Expand Down Expand Up @@ -96,7 +96,7 @@ public function deleteAction(Request $request, AdministratorToken $token): View
throw new AccessDeniedHttpException('You do not have access to this session.', null, 1519831644);
}

$this->administratorTokenRepository->remove($token);
$this->tokenRepository->remove($token);

return View::create();
}
Expand Down Expand Up @@ -131,7 +131,7 @@ private function createAndPersistToken(Administrator $administrator): Administra
$token->setAdministrator($administrator);
$token->generateExpiry();
$token->generateKey();
$this->administratorTokenRepository->save($token);
$this->tokenRepository->save($token);

return $token;
}
Expand Down