diff --git a/src/Annotated/Locator/ListenerEmbeddingsLocator.php b/src/Annotated/Locator/ListenerEmbeddingsLocator.php index 0718827..d5a35d9 100644 --- a/src/Annotated/Locator/ListenerEmbeddingsLocator.php +++ b/src/Annotated/Locator/ListenerEmbeddingsLocator.php @@ -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 { /** diff --git a/src/Annotated/Locator/ListenerEntityLocator.php b/src/Annotated/Locator/ListenerEntityLocator.php index b9be91c..710006d 100644 --- a/src/Annotated/Locator/ListenerEntityLocator.php +++ b/src/Annotated/Locator/ListenerEntityLocator.php @@ -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 { /**