Skip to content

Commit

Permalink
feat: example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferror committed Feb 3, 2024
1 parent 02268b6 commit b950760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion example/src/ProductCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
namespace App;

use DateTime;
use Ferror\AsyncapiDocBundle\Attribute\Channel;
use Ferror\AsyncapiDocBundle\Attribute\Message;
use Ferror\AsyncapiDocBundle\Attribute\Property;
use Ferror\AsyncapiDocBundle\Attribute\PropertyArray;
use Ferror\AsyncapiDocBundle\Schema\Format;
use Ferror\AsyncapiDocBundle\Schema\PropertyType;

#[Message(name: 'ProductCreated', channel: 'product.created')]
#[Message(name: 'ProductCreated')]
#[Channel(name: 'product.created')]
final readonly class ProductCreated
{
/**
Expand Down
4 changes: 3 additions & 1 deletion example/src/UserSignedUp.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

namespace App;

use Ferror\AsyncapiDocBundle\Attribute\Channel;
use Ferror\AsyncapiDocBundle\Attribute\Message;

#[Message(name: 'UserSignedUp', channel: 'user_signed_up')]
#[Message(name: 'UserSignedUp')]
#[Channel(name: 'user_signed_up')]
final readonly class UserSignedUp
{
public function __construct(
Expand Down

0 comments on commit b950760

Please sign in to comment.