Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore autoProvides to exclude http controllers and generated http routes #587

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

rbygrave
Copy link
Contributor

@rbygrave rbygrave commented Jun 4, 2024

The change to autoProvides for Event support also meant that http controllers and http routes started to get included into autoProvides. The problem there is that http controllers are not expected to be public exported types and autoProvides with GenericType doesn't check is the type parameters are public.

…outes

The change to autoProvides for Event support also meant that http controllers and http routes started to get included into autoProvides. The problem there is that http controllers are not expected to be public exported types and autoProvides with GenericType doesn't check is the type parameters are public.
@rbygrave rbygrave requested a review from SentryMan June 4, 2024 07:35
@rbygrave rbygrave self-assigned this Jun 4, 2024
@rbygrave rbygrave added this to the 10.0 milestone Jun 4, 2024
@rbygrave rbygrave merged commit 6aa7a1b into master Jun 4, 2024
7 checks passed
@rbygrave rbygrave deleted the feature/autoProvides-fix branch June 4, 2024 07:38
@SentryMan
Copy link
Collaborator

The problem there is that http controllers are not expected to be public exported types

You have all kinds of applications, a week ago we had an issue in the discord. Routes provided in one module were not picked up in the other module that gathers all the routes and starts the server.

@rbygrave
Copy link
Contributor Author

rbygrave commented Jun 4, 2024 via email

@SentryMan
Copy link
Collaborator

SentryMan commented Jun 4, 2024

That isn't related to autoProvides though.

With this change if we want to have an api module which created all the routes, and a svc module that consumes all route beans we need to add an @InjectModule(requires)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants