for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Jasny\Auth\Confirmation;
use Jasny\Auth\StorageInterface as Storage;
use Jasny\Auth\UserInterface as User;
use Psr\Log\LoggerInterface as Logger;
/**
* No support for confirmation tokens.
*/
class NoConfirmation implements ConfirmationInterface
{
* @inheritDoc
public function withStorage(Storage $storage)
return $this;
}
public function withLogger(Logger $logger)
public function withSubject(string $subject)
* Generate a confirmation token.
*
* @throws \LogicException
public function getToken(User $user, \DateTimeInterface $expire): string
throw new \LogicException("Confirmation tokens are not supported");
* Get user by confirmation token.
* @param string $token Confirmation token
* @return User
public function from(string $token): User