lphuberdeau / confoo-demo Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
I wanted to start with neo4j in php and the PGM solution looks really nice. However i don't want to put my database configuration in the controller. Which would happen when just using the code "Initialize the EntityManager" at https://github.com/lphuberdeau/Neo4j-PHP-OGM
In search for a better solution i found this sample project. Which seems to use a DI-extension to solve the the problem of how to make the EM available in a graceful way.
However, after downloading and doing a composer install, it doesn't work out-of-the-box (i expected it would). See the error trace at the bottom of this message.
Thanks so much for this great bundle, i hope to work with it soon. Also i noticed it was used for ConFoo 2013. I would like to see this presentation too.
Whoops, looks like something went wrong.
1/1ReflectionException: Class does not exist
in C:\xampp\htdocs\Confoo\vendor\hirevoice\neo4jphp-ogm\lib\HireVoice\Neo4j\Meta\Entity.php line 40
at ReflectionClass->__construct('') in C:\xampp\htdocs\Confoo\vendor\hirevoice\neo4jphp-ogm\lib\HireVoice\Neo4j\Meta\Entity.php line 40
at Entity::fromClass(object(FileCacheReader), null, object(Repository)) in C:\xampp\htdocs\Confoo\vendor\hirevoice\neo4jphp-ogm\lib\HireVoice\Neo4j\Meta\Repository.php line 45
at Repository->fromClass(null) in C:\xampp\htdocs\Confoo\vendor\hirevoice\neo4jphp-ogm\lib\HireVoice\Neo4j\Proxy\Factory.php line 45
at Factory->fromNode(object(Node), object(Repository), object(Closure)) in C:\xampp\htdocs\Confoo\vendor\hirevoice\neo4jphp-ogm\lib\HireVoice\Neo4j\EntityManager.php line 197
at EntityManager->load(object(Node)) in C:\xampp\htdocs\Confoo\vendor\hirevoice\neo4jphp-ogm\lib\HireVoice\Neo4j\EntityManager.php line 181
at EntityManager->findAny('0') in C:\xampp\htdocs\Confoo\src\Acme\DemoBundle\Twig\Extension\DemoExtension.php line 92
at DemoExtension->getGlobals() in C:\xampp\htdocs\Confoo\vendor\twig\twig\lib\Twig\Environment.php line 1103
at Twig_Environment->initGlobals() in C:\xampp\htdocs\Confoo\vendor\twig\twig\lib\Twig\Environment.php line 1031
at Twig_Environment->getGlobals() in C:\xampp\htdocs\Confoo\vendor\twig\twig\lib\Twig\Environment.php line 1048
at Twig_Environment->mergeGlobals(array()) in C:\xampp\htdocs\Confoo\vendor\twig\twig\lib\Twig\Template.php line 239
at Twig_Template->display(array()) in C:\xampp\htdocs\Confoo\vendor\twig\twig\lib\Twig\Template.php line 250
at Twig_Template->render(array()) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Bridge\Twig\TwigEngine.php line 53
at TwigEngine->render(object(TemplateReference), array()) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\TwigEngine.php line 78
at TwigEngine->render(object(TemplateReference), array()) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\Debug\TimedTwigEngine.php line 52
at TimedTwigEngine->render(object(TemplateReference), array()) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Bundle\TwigBundle\TwigEngine.php line 107
at TwigEngine->renderResponse(object(TemplateReference), array()) in C:\xampp\htdocs\Confoo\vendor\sensio\framework-extra-bundle\Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener.php line 116
at TemplateListener->onKernelView(object(GetResponseForControllerResultEvent))
at call_user_func(array(object(TemplateListener), 'onKernelView'), object(GetResponseForControllerResultEvent)) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher.php line 139
at ContainerAwareTraceableEventDispatcher->doDispatch(array(array(object(TemplateListener), 'onKernelView')), 'kernel.view', object(GetResponseForControllerResultEvent)) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php line 53
at EventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent)) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.php line 165
at ContainerAwareEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent)) in C:\xampp\htdocs\Confoo\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher.php line 78
at ContainerAwareTraceableEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent)) in C:\xampp\htdocs\Confoo\app\bootstrap.php.cache line 1430
at HttpKernel->handleRaw(object(Request), '1') in C:\xampp\htdocs\Confoo\app\bootstrap.php.cache line 1390
at HttpKernel->handle(object(Request), '1', true) in C:\xampp\htdocs\Confoo\app\bootstrap.php.cache line 1566
at HttpKernel->handle(object(Request), '1', true) in C:\xampp\htdocs\Confoo\app\bootstrap.php.cache line 617
at Kernel->handle(object(Request)) in C:\xampp\htdocs\Confoo\web\app_dev.php line 25
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.