markitosgv/JWTRefreshTokenBundle

"message":"Repository mapped for \"App\\Entity\\JwtRefreshToken\" should implement Gesdinet\\JWTRefreshTokenBundle\\Doctrine\\RefreshTokenRepositoryInterface."

groupemyconnecting opened this issue · 2 comments

Hello i have this message after upgrade the bundle JWTRefreshToken to 1.1.1
I have this message
"message":"Repository mapped for "App\Entity\JwtRefreshToken" should implement Gesdinet\JWTRefreshTokenBundle\Doctrine\RefreshTokenRepositoryInterface."

My class:
`
use App\Repository\JwtRefreshTokenRepository;
use Doctrine\ORM\Mapping as ORM;
use Gesdinet\JWTRefreshTokenBundle\Model\AbstractRefreshToken;

/**

  • @Orm\Entity(repositoryClass=JwtRefreshTokenRepository::class)

  • @Orm\Table("refresh_tokens")
    /
    class JwtRefreshToken extends AbstractRefreshToken
    {
    /
    *

    • @Orm\Id
    • @Orm\GeneratedValue
    • @Orm\Column(type="integer")
      */
      protected $id;

    /**

    • @Orm\Column(type="string", length=128, nullable=true)
      */
      protected $refreshToken;

    /**

    • @Orm\Column(type="string", length=255, nullable=true)
      */
      protected $username;

    /**

    • @Orm\Column(type="datetime", nullable=true)
      */
      protected $valid;

    public function getId(): ?int
    {
    return $this->id;
    }
    }`

and the file config :
gesdinet_jwt_refresh_token:
refresh_token_class: App\Entity\JwtRefreshToken

Does your App\Repository\JwtRefreshTokenRepository class implement Gesdinet\JWTRefreshTokenBundle\Doctrine\RefreshTokenRepositoryInterface? That's what the check around that error message is looking for.

@mbabker thank you i have added the impelement