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

A better example of how to integrate with another frameworks #84

Closed
mihazs opened this issue Jan 17, 2019 · 2 comments
Closed

A better example of how to integrate with another frameworks #84

mihazs opened this issue Jan 17, 2019 · 2 comments

Comments

@mihazs
Copy link

mihazs commented Jan 17, 2019

Hi, i'm very excited about all the concepts of this library, this is really what i need in my application.

I'm trying to make this library works with phalcon framework and i'm totally lost.

$registry = new Registry( $container, // The container containing the controllers (PSR-11 compliant), $authorizationService // Object to manage authorization (the @Right annotation) $authenticationService, // Object to manage authentication (the @Logged annotation) $annotationReader, // A Doctrine annotation reader $typeMapper, // Object used to map PHP classes to GraphQL types. $hydrator, // Object used to create Objects from sent data (mostly for mutation) );
My doubts are about the registry, the authorization and authentication services and the annotationReader seems to be trivial to me, but, to integrate in the phalcon (and another ones framework), i will have to implement the hydrator, typeMapper and the hydrator itself? Is there a "factory default" way to do this?? How is the proper way to implement all?

Thanks

@moufmouf
Copy link
Member

Hey @mihazs ,

I'm in the process of rewriting the documentation about installing with other frameworks.
Also, I plan to work on a factory that helps setting up the service. This will probably be available in the next couple of weeks so please be patient :)

@moufmouf
Copy link
Member

Hey @mihazs ,

I'm currently working on the new website for GraphQL-Controllers, and I just finished the documentation on how to work with no framework: https://github.com/thecodingmachine/graphql-controllers/blob/master/docs/other_frameworks.md

Also, as you suggested, I wrote a factory (SchemaFactory) in order to help developers get started quickly.

Finally, I'll probably rename the project (this week or next week) before tagging the v3, so stay tuned!
Don't hesitate to tell me if you have any questions or if something is not clear. I'm aiming for a good quality at documentation and I need feedback.

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

No branches or pull requests

2 participants