| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- declare(strict_types=1);
- namespace App\ApiResources\HelloAsso;
- use ApiPlatform\Metadata\ApiProperty;
- use ApiPlatform\Metadata\ApiResource;
- use ApiPlatform\Metadata\Get;
- use App\State\Provider\HelloAsso\CallbackForwardingProvider;
- /**
- * Ressource publique pour gérer les redirections de callback HelloAsso.
- */
- #[ApiResource(
- operations: [
- new Get(
- uriTemplate: '/public/helloasso/callback',
- ),
- ],
- provider: CallbackForwardingProvider::class,
- )]
- class CallbackForwarding
- {
- /**
- * Id 'bidon' ajouté par défaut pour permettre la construction
- * de l'IRI par api platform.
- */
- #[ApiProperty(identifier: true)]
- private int $id = 1;
- public function getId(): int
- {
- return $this->id;
- }
- public function setId(int $id): self
- {
- $this->id = $id;
- return $this;
- }
- }
|