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

Issue with custom command #49

Closed
markharding opened this issue Apr 28, 2015 · 6 comments
Closed

Issue with custom command #49

markharding opened this issue Apr 28, 2015 · 6 comments

Comments

@markharding
Copy link

I am trying to create a custom command to do a simple POST Rest command based on the documentation.

I am able to register and call the alias fine.

$this->neo4j = NeoClient\ClientBuilder::create()
                    ->addConnection('default','http', 'localhost',7474, true, 'neo4j', 'neo4j')
                    ->registerCommand('geomlink', 'Minds\Core\Data\Neo4j\Commands\GeomLink')
                    ->setAutoFormatResponse(true)
                    ->setDefaultTimeout(20)
                    ->build();

I then get a fatal error when I run the invoke command

$this->neo4j->invoke($command);

error: Call to a member function buildRequest() on a non-object

Any ideas?

@markharding
Copy link
Author

I wrote an extension and that seems to have solved it. Perhaps favour this in documentation?

@ikwattro
Copy link
Member

Thanks for the feedback, I will look into it.

Good point to favor extensions. 👍

@ikwattro
Copy link
Member

Any chance you'll be present at GraphConnect?

@markharding
Copy link
Author

Not this year.. hopefully next though

@ikwattro
Copy link
Member

Ok . Please don't hesitate to come with feedback on NeoClient to me

@ikwattro
Copy link
Member

Closing this one, as Neoclient is moved to GraphAware and the CommandPattern has completely been removed.

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