Skip to content

Commit

Permalink
Add TargetAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Dec 19, 2023
1 parent 75dfcaf commit 0469737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Annotated/Locator/ListenerEmbeddingsLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
use Cycle\Annotated\Locator\Embedding;
use Cycle\Annotated\Locator\EmbeddingLocatorInterface;
use Spiral\Attributes\ReaderInterface;
use Spiral\Tokenizer\Attribute\TargetAttribute;
use Spiral\Tokenizer\TokenizationListenerInterface;

#[TargetAttribute(Embeddable::class, useAnnotations: true)]
final class ListenerEmbeddingsLocator implements EmbeddingLocatorInterface, TokenizationListenerInterface
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Annotated/Locator/ListenerEntityLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
use Cycle\Annotated\Locator\Entity;
use Cycle\Annotated\Locator\EntityLocatorInterface;
use Spiral\Attributes\ReaderInterface;
use Spiral\Tokenizer\Attribute\TargetAttribute;
use Spiral\Tokenizer\TokenizationListenerInterface;

#[TargetAttribute(Attribute::class, useAnnotations: true)]
final class ListenerEntityLocator implements EntityLocatorInterface, TokenizationListenerInterface
{
/**
Expand Down

0 comments on commit 0469737

Please sign in to comment.