Hello,
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:
//databasecontent.php
require_once __DIR__.'/app/bootstrap.php.cache';
require_once __DIR__.'/app/AppKernel.php';
use Symfony\Component\HttpFoundation\Request;
$kernel = new AppKernel('dev', true);
$kernel->loadClassCache();
$kernel->boot();
$container = $kernel->getContainer();
$container->enterScope("request");
$container->set('request', Request::createFromGobals());
//...//
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!
