-
Notifications
You must be signed in to change notification settings - Fork 223
GraphQLController as a Service #208
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
Conversation
@mcg-web could you help me with the tests? |
@renatomefi It seems like the service i not properly loaded, I'll give look to this Monday morning, this weekend I'm some way busy 💃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the changes to make this work
Resources/config/routing/graphql.yml
Outdated
path: / | ||
defaults: | ||
_controller: OverblogGraphQLBundle:Graph:endpoint | ||
_controller: overblog_graphql.controller.graphql:endpoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add Action
suffix the method name is not complete
Resources/config/routing/graphql.yml
Outdated
path: /batch | ||
defaults: | ||
_controller: OverblogGraphQLBundle:Graph:batchEndpoint | ||
_controller: overblog_graphql.controller.graphql:batchEndpoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Resources/config/routing/graphql.yml
Outdated
path: /graphql/{schemaName} | ||
defaults: | ||
_controller: OverblogGraphQLBundle:Graph:endpoint | ||
_controller: overblog_graphql.controller.graphql:endpoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Resources/config/routing/graphql.yml
Outdated
path: /graphql/{schemaName}/batch | ||
defaults: | ||
_controller: OverblogGraphQLBundle:Graph:batchEndpoint | ||
_controller: overblog_graphql.controller.graphql:batchEndpoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Resources/config/services.yml
Outdated
|
||
overblog_graphql.controller.graphql: | ||
class: Overblog\GraphQLBundle\Controller\GraphController | ||
public: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Controller services must be public
Controller/GraphController.php
Outdated
use Symfony\Component\HttpFoundation\Response; | ||
|
||
class GraphController extends Controller | ||
final class GraphController |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not for controller as final but this is not part of the issue :)
push wrong button 🥇 |
d90477c
to
1bfcad7
Compare
1bfcad7
to
70b9d8a
Compare
@mcg-web thanks a lot, your tips were directly to the point! It's working now! :) |
Nice, don't forget to remove wip label if you want it to be merge :) |
@mcg-web sure, I think that was it :) |
@renatomefi thank you for contribution 👍 |
Uh oh!
There was an error while loading. Please reload this page.