These are chat archives for neoxygen/neo4j-neoclient

3rd
Mar 2015
RĂ©mi
@remialvado
Mar 03 2015 13:46
Hi
I'm trying to use neoclient in a Symfony2 application but I have this issue when I try to build the Client : [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] The service definition "logger" does not exist.
I took a deep look at the code and I saw that :
-> the service container is created inside ClientBuider::__construct
-> the Neo4jExtension is using the "logger" definition on this container but no one seems to have created it before :(
any idea how to fix it ?
basically, I'm doing this :
$clientBuilder = ClientBuilder::create();
$clientBuilder->enableCache("/tmp/");
$clientBuilder->addConnection('master', 'http', $this->config["master"]["host"], $this->config["master"]["port"]);
$clientBuilder->setMasterConnection('master');
foreach ($this->config["slaves"] as $slaveName => $slaveConfig) {
    $clientBuilder->addConnection($slaveName, 'http', $slaveConfig["host"], $slaveConfig["port"]);
    $clientBuilder->setSlaveConnection($slaveName);
}
 $this->client = $clientBuilder->build();