cycle / annotated

Schema generation using annotated entities and mappers
MIT License
23 stars 12 forks source link

Adding the ability to use Locators #60

Closed msmakouz closed 1 year ago

msmakouz commented 1 year ago

In the Entities and Embeddings generators, the logic for searching for classes with attributes is moved to separate locators. Now they only accept the locator interface and don't know anything about the implementation. This will allow these generators to be used with different implementations searching classes with attributes.

codecov[bot] commented 1 year ago

Codecov Report

Merging #60 (41c9178) into 4.x (78c8f0e) will increase coverage by 0.20%. The diff coverage is 90.24%.

@@             Coverage Diff              @@
##                4.x      #60      +/-   ##
============================================
+ Coverage     90.74%   90.95%   +0.20%     
- Complexity      253      261       +8     
============================================
  Files            32       36       +4     
  Lines           616      630      +14     
============================================
+ Hits            559      573      +14     
  Misses           57       57              
Impacted Files Coverage Δ
src/Locator/TokenizerEmbeddingLocator.php 81.81% <81.81%> (ø)
src/Locator/TokenizerEntityLocator.php 81.81% <81.81%> (ø)
src/Embeddings.php 78.94% <100.00%> (+3.94%) :arrow_up:
src/Entities.php 100.00% <100.00%> (+3.17%) :arrow_up:
src/Locator/Embedding.php 100.00% <100.00%> (ø)
src/Locator/Entity.php 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.