I'm trying to learn Symfony since a few days and doing some tutorials. Now I'm doing a tutorial for setting up a database with doctrine and I just copied the code, but it won't work.
This is the code, where my Databasecontent should be defined:
$kernel = new AppKernel('dev', true);
$container = $kernel->getContainer();
Now the tutorial says I should execute this file in the shell.
I type php /pathofproject/databasecontent.php in the shell but it always says "Fatal error: Call to undefined method Symfony\Component\HttpFoundation\Request::createFromGlobals() in C:/pathofxampp/Pathofproject/databasecontent.php
I'm working with Win 7, PHPEd 7.0, Symfony 2.0.12 and XAMPP 1.7.7.
Thank you for your help!