Skip to content

Commit

Permalink
attributes on RefreshToken entity (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehibes authored Jun 28, 2023
1 parent e66a16e commit a74722e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ gesdinet_jwt_refresh_token:
2. Create the object class.
If you are using the Doctrine ORM, the below contents should be placed at `src/Entity/RefreshToken.php`:

If you are using the Doctrine ORM, the below contents should be placed at `src/Entity/RefreshToken.php` (use annotations OR attributes):
```php
<?php
Expand All @@ -104,6 +104,8 @@ use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken as BaseRefreshToken;
* @ORM\Entity
* @ORM\Table("refresh_tokens")
*/
#[ORM\Entity]
#[ORM\Table(name: 'refresh_tokens')]
class RefreshToken extends BaseRefreshToken
{
}
Expand Down

0 comments on commit a74722e

Please sign in to comment.