thecodingmachine / graphqlite

Use PHP Attributes/Annotations to declare your GraphQL API
https://graphqlite.thecodingmachine.io
MIT License
554 stars 95 forks source link

Allow loading types with autoloading #660

Closed oprypkhantc closed 4 months ago

oprypkhantc commented 4 months ago

Closes #659

The $autoload flag is true by default, as I feel that's sensible. But to avoid another breaking change I can change it to false.

Otherwise it's a simple fix. $autoload = true means a class would simply be autoloaded with class_exists() and that's it, same as ->addControllerNamespace(). $autoload = false means the "legacy" behaviour

codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.30%. Comparing base (53f9d49) to head (255b287). Report is 70 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #660 +/- ## ============================================ - Coverage 95.72% 95.30% -0.43% - Complexity 1773 1820 +47 ============================================ Files 154 171 +17 Lines 4586 4854 +268 ============================================ + Hits 4390 4626 +236 - Misses 196 228 +32 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.