Implement api with ability to read snips and profile

This commit is contained in:
Tim
2025-04-27 21:41:53 +02:00
parent ba00351201
commit f56c78f626
12 changed files with 267 additions and 20 deletions

View File

@@ -34,6 +34,9 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\Column(length: 255)]
private ?string $email = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $apiKey = null;
public function __toString(): string
{
return $this->name ?? '';
@@ -132,4 +135,16 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
return $this;
}
public function getApiKey(): ?string
{
return $this->apiKey;
}
public function setApiKey(?string $apiKey): static
{
$this->apiKey = $apiKey;
return $this;
}
}